<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
0D54z0000AE3jxRCQROkta Classic EngineIntegrationsAnswered2024-07-31T17:01:32.000Z2024-07-30T17:32:42.000Z2024-07-31T17:01:32.000Z

RobertH.33354 (Vizient, Inc.) asked a question.

Concantenate Attribute Statement for SAML Assertion

I am trying to add a custom attribute where the value is the user.firstname<SPACE>user.lastName. I have tried the following string operation String.join(",", user.firstName, " " , user.lastName) ; however, in the SAML assertation preview it shows as:

 

<saml2:Attribute Name="nexthink.fullname" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">

<saml2:AttributeValue

xmlns:xs="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="xs:string">Robert, ,Hazen

 

I need the commas eliminated.


  • Mihai N. (Okta, Inc.)

    Hi @RobertH.33354 (Vizient, Inc.)​ , Thank you for reaching out to the Okta Community! 

     

    The correct Okta Expression Language syntax for that use case would be: 

    user.firstName + " " + user.lastName

    *No String.join or other function needed. You should just be able to copy-paste my example.

    imageIf 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. 

     

    Hope my answer helps! 

     

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
    Selected as Best
  • Mihai N. (Okta, Inc.)

    Hi @RobertH.33354 (Vizient, Inc.)​ , Thank you for reaching out to the Okta Community! 

     

    The correct Okta Expression Language syntax for that use case would be: 

    user.firstName + " " + user.lastName

    *No String.join or other function needed. You should just be able to copy-paste my example.

    imageIf 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. 

     

    Hope my answer helps! 

     

    --

    Help others in the community by liking or hitting Select as Best if this response helped you.

    Expand Post
    Selected as Best
This question is closed.
Loading
Concantenate Attribute Statement for SAML Assertion