
vfybs (vfybs) asked a question.
I am seeing the following error
Error: The API returned an error: Api validation failed: validateRule. Causes: errorSummary: Invalid property status in expression (user.title == "A" OR user.title == "B") AND user.status == "C", errorSummary: conditions: Invalid expression
So if I can do (cond1 OR cond2) AND condC, how else can I express this logic in an urn:okta:expression:1.0 expression???

The error is not with your nesting (which looks fine, btw). The error specifically states "invalid property status", which would be clearer if it said "Invalid property: status". Unless "status" is a custom property/attribute that you've added to your Okta user profiles, the error is telling you that your expression is trying to use a property that doesn't exist.
[signature_365223828]
Victor Y. Kwok
Senior Staff Engineer
Email victor.kwok@moxbank.com<mailto:victor.kwok@moxbank.com>
Phone +852 62956957
Website mox.com<http://www.mox.com/>
Address 39/F, Oxford House, 979 King’s Road, Taikoo Shing, Quarry Bay, Hong Kong
Correct, the user object has a status attribute, but the user profile is itself a separate attribute of the user object. The status attribute exists at the same level as the profile attribute, not within the profile attribute array.
Unfortunately, there's no mention of how to check an object's status in the OEL documentation. To date, I've only ever used actual status values to filter the results of an API call. I'm not sure that there's a way to check the value of that attribute within an OEL expression.