<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
0D54z00008giw03CAAOkta Classic EngineDirectoriesAnswered2025-10-11T09:00:47.000Z2023-01-20T08:33:54.000Z2023-02-09T22:14:30.000Z

y39dw (y39dw) asked a question.

Custom Attribute

Hi community,

 

i'm trying to resolve this issue:

 

* Use Expression Language to combine firstName and lastName in Org1 into a new attribute called empName and has the format lastname.firstname,

 

Can you help me? I created a custom attribute in Okta User via Profile Editor but i cannot find how use expression language.

 

Thanks


  • a0n5s (a0n5s)

    @y39dw (y39dw)​ where you want use this new attribue empName? mapping to another appllication? Or mapping to AD or LDAP? You can use the expression like: String.join(user.lastName, ".", user.firstName) in the profile mapping setting.

    • u7hvd (u7hvd)

      The new attribute empName is an okta source user

      I would like to map map this new attribute with lastname + firstname

      • a0n5s (a0n5s)

        if the user is okta source, no need add attribute empName in Okta default user profile. you can mapping this expression to the attribute of application you want.

        Image is not available

        Expand Post
  • b5n6c (b5n6c)

    Hi Mattia Marini,

    The attribute mapping feature can only be used to map attributes from AD (or other apps) to Okta

     example for your use case: appuser.lastName + ". " + appuser.firstName OR from Okta to downstream apps example for your use case: user.lastName+"."+ user.firstName .

    If my answer helped, remember to mark it as best to increase its visibility for other members of the Okta Community who might have the same questions as you. 

    Expand Post
  • Were you ever given a solution for this? I have the exact same question and Okta support told me it was not possible to combine two okta user attributes into a custom Okta user attribute. This seems to be what the question is asking you to do.

     

    Maybe I'm misreading the question?

    • u7hvd (u7hvd)

      Hi Adam,

       

      yes i give solution.

      you need to use attribute mapping from Okta to App User using regex (empName user.firstname+”.”+user.lastname) and then map new attribute in attribute mapping in IDP settings

      Expand Post
This question is closed.
Loading
Custom Attribute