Issue:
unable to exclude users with a UPN containing "peakpropertygroup" from this group. Please see below for the current Dynamic rules. Users with UPNs containing "peakpropertygroup" are still being added to the group even though I am using the (user.mail -notcontains "peakpropertygroup") and (user.userPrincipalName -notContains "peakpropertygroup") rules.
Group Name: Leasing Managers
Group type: O365
Object ID: 405b7c46-4d21-4873-8309-1f904018390a
((user.jobTitle -eq "Leasing Manager") or (user.jobTitle -eq "Senior Leasing Manager") or (user.jobTitle -eq "Senior National Leasing Specialist") or (user.jobTitle -eq "National Leasing Specialist") or (user.userPrincipalName -contains "ccarney@coastalridge") or (user.userPrincipalName -contains "chiatt@coastalridge") or (user.userPrincipalName -contains "kmahood@coastalridge") or (user.userPrincipalName -contains "korewiler@coastalridge") and (user.mail -notcontains "peakpropertygroup") and (user.userPrincipalName -notContains "peakpropertygroup"))
Solution:
For the include (contain) arguments, encapsulate them in double parenthesis (( )) and then for exclude arguments, use single parenthesis ( ) to encapsulate it
((user.jobTitle -eq "Leasing Manager") or (user.jobTitle -eq "Senior Leasing Manager") or (user.jobTitle -eq "Senior National Leasing Specialist") or (user.jobTitle -eq "National Leasing Specialist") or (user.userPrincipalName -contains "ccarney@coastalridge") or (user.userPrincipalName -contains "chiatt@coastalridge") or (user.userPrincipalName -contains "kmahood@coastalridge") or (user.userPrincipalName -contains "korewiler@coastalridge")) and (user.userPrincipalName -notcontains "peakpropertygroup")
Comments
0 comments
Please sign in to leave a comment.