How to remove member from dynamic membership group

Anonymous
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

Answer accepted by question author
Thameur-BOURBITA 36,531 Reputation points Moderator
2024-11-17T10:37:35.7866667+00:00

Hi @Anonymous

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


Was this answer helpful?

1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Andy David - MVP 160.3K 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

    Was this answer helpful?


Your answer

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