Dynamic Group rule MemberOf another group but exclude a few users
Filbrun, Jordan A
0
Reputation points
I have a dynamic group that I am struggling to get working. Here is the rule syntax:
user.memberof -any (group.objectId -in ['objectID']) -AND (user.userPrincipalName -notIn ["user1@contoso.com","user2@contoso.com"])
The group has all regular employees at the company, and I want to exclude just a few members. Why is this syntax not working? It works with everything before the -AND but adding the second part breaks it.
Sign in to answer