Group membership rule errors Skip to main content
https://support.okta.com/help/answers?id=9062a000000xzzaqaw&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:
Joost KoiterJoost Koiter 

Group membership rule errors

New to Okta, trying out group membership rules. According to https://help.okta.com/en/prod/Content/Topics/Directory/Directory_Groups.htm#ConditionsEE3, "Any function supported in Okta Expression Language." is supported. But when I enter this as a rule (just as an experiment):
 
Convert.toInt('1') > 0
I get an error:
Unsupported expression constructs are used in expression Convert.toInt('1') > 0
What am I missing? Thanks!
Alexandru BungauAlexandru Bungau (Okta, Inc.)
Hello J.K., can you tell me exactly what are you trying to achieve with that expresion
Alexandru BungauAlexandru Bungau (Okta, Inc.)
Here is some documentation regarding OKTA expression language
https://developer.okta.com/reference/okta_expression_language/index
Joost KoiterJoost Koiter
With that particular expression? A boolean result of true, and that any user will match the rule. This is just an experiment. But if this simple expression doesn't work, more complex (and useful) ones surely won't either. And I read the docs.
Read only AdminRead only Admin
Hi JK,

This is a perfect question you have asked.
Here is the solution for your query
'Convert.toInt('1')' > 0
or
'Convert.toInt('1')' > '0'
Because return type of Convert is Integer and that comparision not gonna work her. So convert that way. Hope this satisfied your query.
Read only AdminRead only Admin
If not you can try "Convert.toInt('1')" > 0. Sometimes copy paste wont work i suggest to type :)
Joost KoiterJoost Koiter
Unfortunately that doesn't work, Yogendra. It should be treated as an expression, not a quoted string literal.