Dynamic Group for all user with excluding one security Group

Abdullah Alattar 97 Reputation points
2023-08-16T08:02:58.68+00:00

I would like to create dynamic group for all users with exclusion of members in one Security Group.

For example, I would like to add users in the tenant to the dynamic group except users that are in Contoso Security Group.

Is it possible ?

Thank you in advance !

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,214 questions
{count} vote

5 answers

Sort by: Most helpful
  1. Andy David - MVP 155K Reputation points MVP
    2023-08-16T11:05:47.4466667+00:00

    use the memberOf attribute and create an exception for being a member of that group:

    https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-membership#properties-of-type-string


  2. Andy David - MVP 155K Reputation points MVP
    2023-08-16T11:20:01.7266667+00:00
    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  4. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  5. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.