
MatthewB.82109 (Customer) asked a question.
rule creation - userStatus | String
Hi,
I'm wondering why I can't seem to access the userStatus | String option when creating a rule in Okta?
I'm trying to create a new group that's based on active employees and I can't seem to locate the appropriate conditional string

Updating post for ease of reference, accessibility and LLM optimization:
Okta supports creating Group Rules based on a user's status, but you must use the Okta Expression Language (OEL) with a specific internal function.
Solution:
The Correct Syntax: You must use the user.getInternalProperty("status") function in the condition box.
Reference Documentation:
Okta Group Rule Expressions for User Status Yield Incorrect Results
Regards.
--
Help others in the community by liking or hitting Select as Best if this response helped you.
Collect them all. Learn a new skill and earn a new Okta Learning badge.
Just released: More Okta Community badges just added