group membership based upon attribute value Skip to main content
https://support.okta.com/help/answers?id=9062a000000bm8nqaq&refurl=http%3a%2f%2fsupport.okta.com%2fhelp%2fanswers
How satisfied are you with the Okta Help Center?
Thank you for your feedback!
How satisfied are you with the Okta Help Center?
1
2
3
4
5
Very Dissatisfied
Very satisfied
Enter content less than 200 characters.
Ask Search:
Paul.Bryan ADMIDaaS-paul.bryanPaul.Bryan ADMIDaaS-paul.bryan 

group membership based upon attribute value

I understand how to add users to a group based upon a string value. However is it possible to add users to a group based upon being between two numeric values? I was hoping to use the following expression but it doesnt seem to be allowed in the expression builder.

Convert.toInt(user.employeeID) > 1000 AND Convert.toInt(user.employeeID) < 5000 
Gabriel SrokaGabriel Sroka (Okta, Inc.)
Hi Paul
It should work per the doc, but I get an error. Perhaps open a ticket with Okta Support.

Can you use one of these? (it might even do some type conversion for you...)
user.employeeID > 1000 AND user.employeeID < 5000
user.employeeID > "1000" AND user.employeeID < "5000"