Azure AD Dynamics Groups

jLight 201 Reputation points
2020-04-20T14:36:41.473+00:00

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

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

Thanks!

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2020-04-20T14:44:01.433+00:00
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. jLight 201 Reputation points
    2020-04-20T16:08:46.653+00:00

    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 person found this answer helpful.

  2. jLight 201 Reputation points
    2020-04-20T15:07:15.597+00:00

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

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.