
sogi1 (sogi1) asked a question.
Okta expression- select multiple values and put into 1 group
I have this ((user.employeeType=="E1" or user.employeeType=="E2") and String.startsWith(user.department,"2170"))
I need select where user.department starts with multiple values 2170 | 2166 | 2165

Hi @sogi1 (sogi1) , Thank you for reaching out to the Okta Community!
I'm not 100% sure I understood your use case or restrictions but assuming I got it right, please try the following:
((user.employeeType=="E1" OR user.employeeType=="E2") AND String.startsWith(user.department,"2170")) OR ((user.employeeType=="E1" OR user.employeeType=="E2") AND String.startsWith(user.department,"2166")) OR ((user.employeeType=="E1" OR user.employeeType=="E2") AND String.startsWith(user.department,"2165"))
If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you.
Hope my answer helps!
--------------------------------
Headed to Oktane? Here's what you can expect, plus all the Okta tips you may have missed this month