hello,
Looking for sample scripts on how to create "AAD Security Group Teams" using PowerShell - Dynamics 365 online.
Thanks.
hello,
Looking for sample scripts on how to create "AAD Security Group Teams" using PowerShell - Dynamics 365 online.
Thanks.
Thank you for your suggestion.
This document explains how to create "Azure Active Directory Group" not "Dynamic 365 Online AAD Security Group Teams".
Hi Saad,
Have you checked the docs below?
It contains an example command to create a group.
If it's helpful then I'm happy.
Thanks, Tad
I am afraid there might not be the sample code for the exact requirement as yours since not a lot of people create records using "Microsoft.Xrm.Data.PowerShell" module and document their code. Normally if we set the value for the option set field in JavaScript, C# or flow, we would only use the integer value. So, please try just 2 (int).
Thank you.
I have been using "Microsoft.Xrm.Data.PowerShell" module for awhile.
I'm able to create "Owner" teams and assigning security roles to existing Teams.
The challenge I have is with creating AAD Security Teams because of the attribute types.
e.g. I don't know how to set teamtype (Edm.Int32) to 2 (AAD Security Group). The type of it is Emd.Int32, so I cannot set it to just 2 (int) or "2" (string).
That is why I'm looking for sample code to show me how to do it.
I believe you have to create the team record and associate with the security role using Microsoft.Xrm.Data.PowerShell or CURL Command to Dynamics 365 API.
The sample codes can be found below.
https://github.com/seanmcne/Microsoft.Xrm.Data.PowerShell
http://rest-examples.chilkat.io/dynamics_crm/powershell/default.cshtml
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,269 Super User 2024 Season 2
Martin Dráb 230,198 Most Valuable Professional
nmaenpaa 101,156