<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
0D51Y00008QlJCiSANOkta Classic EngineSingle Sign-OnAnswered2024-03-25T22:47:48.000Z2020-05-06T02:03:59.000Z2020-05-06T12:47:07.000Z
  • 2gfue (2gfue)

    I dont know where you want to use it but you can check -

    https://developer.okta.com/docs/reference/okta-expression-language/

    As OKTA expression language is built on Spring Expression Language (SpEL) so you can check more on

    https://docs.spring.io/spring/docs/3.0.x/reference/expressions.html

     

    Here are few example if wish to modify name you can use Conditional Expressions like -

    String.len(NAME) == 6 ? NAME : String.append("0",NAME)

    String.len(NAME) == 5 ? NAME : String.append("00",NAME)

    String.len(NAME) == 4 ? NAME : String.append("000",NAME)

    String.len(NAME) == 3 ? NAME : String.append("0000",NAME)

    String.len(NAME) == 2 ? NAME : String.append("00000",NAME)

    String.len(NAME) == 1 ? NAME : String.append("000000",NAME)

     

     

    Hope this will give you some idea 🙂

     

     

    Expand Post
  • Thanks. That is what I had suspected was I need to cover each case. I am trying to use it to send an attribute in the SAML response

This question is closed.
Loading
How to pad a string