Forum Discussion

sof_brad's avatar
sof_brad
Copper Contributor
Oct 17, 2023

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"]))

Resources