<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D5WR000010YJY30AOOkta Classic EngineAuthenticationAnswered2025-11-24T18:13:07.000Z2025-11-24T14:52:44.000Z2025-11-24T18:13:07.000Z

IsaacB.81593 (Customer) asked a question.

Testing for not null in authentication policy expression

Hi: I'm trying to construct an authentication policy rule (in OIE) that is triggered by an expression. For example, manager is not null and not blank.

 

For not blank, I do user.profile.manager.removeSpaces() != "". I test this policy and can see that it's triggered if a user's manager is not blank, bypassed if blank.

 

But if I test on user.profile.manager.removeSpaces() != null the rule is always triggered, no matter the value of manager.

 

What am I missing? Is there a bug?

 

Thanks.

 


  • IsaacB.81593 (Customer)

    I realize that I can test user.profile.manager.length() > 0, but am still curious about the null test.

    • TimL.58332 (Workflows)

      So in your situation I would do something like: !user.profile.manager.length(NULL)

       

      or possibly: user.profile.manager.length() != NULL

      • IsaacB.81593 (Customer)

        Thanks Tim: It turns out that the attribute that I was testing for "not null" was, in fact, not null, as it had been edited, then blanked. When I tested on an account where the attribute was truly null, the rules worked as designed.

Loading
Testing for not null in authentication policy expression