Forum Discussion
sof_brad
Oct 17, 2023Copper Contributor
Unable to create a dynamic membership rule using OR conditional
I am trying to update the dynamic criteria for a group to consider if the members are either a member of a set of locations OR they have an EmployeeType property we present from their on-premises identity. I am not sure how to get it to be:
(user.accountEnabled -eq true) and (user.companyName -eq "Company")
Then either:
((user.phyisicaldeliveryOfficeName -in ["Office1","Office2","Office3","Office4"])
OR
(extension_randomstring_employeeType -in ["Type1","Type2","Type3"]))
Full existing rule is below:
(user.accountEnabled -eq true) and (user.companyName -eq "Company") and ((user.phyisicaldeliveryOfficeName -in ["Office1","Office2","Office3","Office4"]) -or (extension_randomstring_employeeType -in ["Type1","Type2","Type3"]))
- BilalelHaddIron ContributorHi sof_brad,
I am unsure if your question was answered, but the strings you are using are not supported. You can find an overview of the supported properties in this Microsoft Learn page:
https://learn.microsoft.com/en-us/azure/active-directory/enterprise-users/groups-dynamic-membership#supported-properties
I hope this helps and that you found another way to archive the above.