Creating a Dynamic Group

Gregory Peterson 0 Reputation points
2025-05-15T14:11:27.3266667+00:00

I am trying to configure a entra group to include members of a specific group but exclude members of another group. I am running into problem creating the dynamic rules in order to pull the correct members. Any help here would be appreciated.

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
25,072 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andy David - MVP 157.4K Reputation points MVP Volunteer Moderator
    2025-05-15T14:21:12.8966667+00:00

  2. Eric Nguyen 1,025 Reputation points Independent Advisor
    2025-05-16T04:31:11.9933333+00:00

    You can't automatically create a group in Entra that includes members of one group but removes those in another. This type of rule isn’t supported. To work around Entra’s limitations, use user attributes to define dynamic group membership. For example, filter by department or job title to include or exclude users:

    (user.department -eq "Sales") -and (user.jobTitle -ne "Contractor")

    If no useful attribute exists, manage exclusions manually by creating a separate group for users you want to exclude.
    If this helped clarify the limitation and offered a useful workaround, please consider giving it a thumbs up or marking it as helpful—your feedback supports the community and helps others find clear answers faster!


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.