<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
0D51Y00006Yua5MSAROkta Classic EngineSingle Sign-OnAnswered2019-09-23T22:11:47.000Z2019-08-16T20:24:28.000Z2019-09-23T22:11:47.000Z

JonathanP.59674 (Customer) asked a question.

Application Username Format - Custom

Hello,

 

Having some trouble getting this formatted properly for a site we're trying to add into Okta, I've created a new mapping under From Okta to > App for the sAMAccountName, and then I need to append @SOMETHING without a .com at the end of it. I saw a few things on the community here but am having some trouble piecing them together to get this to work.

 

This is what I have currently set as the attribute for the sAMAccountName mapping:

 

substringBefore(user.login,'@')+"@SOMETHINGHERE"

 

 

 

I get an error when I type in a username to test it that says "Invalid Property sAMAccountName in expression org.springframework.expression.spel.standard.SpelExpression@7e5d105b"

 

Would anyone be able to assist with the formatting on this? I've checked out the following links but this seems to be a bit outside of their scope.

 

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

 

 

 

Thank you!


  • Hi Jonathan!

     

    Thank you for posting on our community.

     

    This is an interesting behavior that you've experienced. May I ask if the samAccountName username format was over rode on the Sign On tab of the application that you're trying to add into Okta?

     

    Or is this looking at a Directory Integration?

    Either way, I would recommend using the Application Username Format setting for achieving this.

     

    If this will not be helpful, I will recommend opening a support ticket with us and we can schedule a screen sharing session to assess what you are trying to implement and achieve sweet resolution.

     

    Thank you,

    Dragos Milea

    Okta Global Customer Care Team

     

     

     

    Expand Post
    Selected as Best
  • Hi Jonathan!

     

    Thank you for posting on our community.

     

    This is an interesting behavior that you've experienced. May I ask if the samAccountName username format was over rode on the Sign On tab of the application that you're trying to add into Okta?

     

    Or is this looking at a Directory Integration?

    Either way, I would recommend using the Application Username Format setting for achieving this.

     

    If this will not be helpful, I will recommend opening a support ticket with us and we can schedule a screen sharing session to assess what you are trying to implement and achieve sweet resolution.

     

    Thank you,

    Dragos Milea

    Okta Global Customer Care Team

     

     

     

    Expand Post
    Selected as Best
This question is closed.
Loading
Application Username Format - Custom