question

jLight avatar image
0 Votes"
jLight asked ·

Azure AD Dynamics Groups

I tried looking online and can't find anything... is there a way to set the dynamic rules using PowerShell or Microsoft Graph?

https://docs.microsoft.com/en-us/azure/active-directory/users-groups-roles/groups-dynamic-membership

Thanks!

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

michev avatar image
0 Votes"
michev answered ·
· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

jLight avatar image
0 Votes"
jLight answered ·

Ahhh I should have included "Azure AD" with my search terms. Perfect, thanks!

· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

jLight avatar image
0 Votes"
jLight answered ·

Just a follow up for those who can come across this. If you received the error below, the command isn't part of the regular AzureAD module yet. You have to remove the current module, then install preview.

(Run it with admin rights)

 Uninstall-Module -Name AzureAD
 Install-Module -Name AzureADPreview -force


Error I received when I had the regular module:

 New-AzureADMSGroup : A parameter cannot be found that matches parameter name 'MembershipRule'.





· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

When dealing with several different modules in PowerShell, keep in mind you can use the following CmdLet : Get-Command -Module AzureAD to see for example the list of all the CmdLet available in this module. The command New-AzureADMSGroup is indeed part of AzureAD module.

0 Votes 0 · ·