I would like to include all users from multiple office locations except for a set of users based on user.jobTitle.
I would like to be able to use the -contains option as we have found that from time to time users get created and the exact syntax isn't followed. (example a space might be left out)
We have tried to use the -in option but it does not work with -contains or -notContains
User Profile Syntax:
- user.physicalDeliveryOfficeName filled out with the following format: <####> - <State> - <CommonLocationName>
- an example would be : 8154 - VT - Keene Facility
- user.JobTitle filled out with the following format: <abbreviation if applicable> : <expanded job title>
- an example woud be : RN : Registered Nurse
Example 1 syntax tried:
((user.physicalDeliveryOfficeName -contains "8154") and (user.jobTitle -notContains "RN")) or
((user.physicalDeliveryOfficeName -contains "8154") and (user.jobTitle -notContains "LPN"))
1st line: returns all users at location 8154 except for RN (note that this includes LPN in line below
2nd line: returns all users at location 8154 except for LPN(note that this includes RN in line above
Example 2 syntax tried:
(user.physicalDeliveryOfficeName -contains "8154" or user.physicalDeliveryOfficeName -contains "8154") and
(user.jobTitle -notContains "RN" or user.jobTitle -notContains "LPN")
Both examples generate the same user list. The actual rule contains multiple 4 digit location codes and more than these two job titles.