How to remove member from dynamic membership group

Abderrazak Agourram 20 Reputation points
2024-11-15T20:41:41.9033333+00:00

Hello,

I want to to know how to remove member from dynamic membership group.

Thank you,

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

Accepted answer
  1. Thameur-BOURBITA 36,371 Reputation points Moderator
    2024-11-17T10:37:35.7866667+00:00

    Hi @Abderrazak Agourram

    I think you don't choose the right operator.

    Try to replace -notin by -ne in your rule:

    -ne (user.userPrincipalName -notin ["roneycutt@ppme"])
    

    Please don't forget to accept helpful answer


    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Andy David - MVP 158.4K Reputation points MVP Volunteer Moderator
    2024-11-15T20:45:27.63+00:00

    You cant remove them manually, since the dynamic group is based on whatever rules you used to create it. If you want them removed, then that account will have to have properties that dont match the group membership or add a condition in the rule that specifically excludes the account.

    https://learn.microsoft.com/en-us/entra/identity/users/groups-dynamic-membership


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.