<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
0D54z00008tabawCAAOkta Classic EngineDirectoriesAnswered2025-09-13T09:01:51.000Z2023-03-09T04:27:12.000Z2023-03-10T23:55:01.000Z

sdipm (sdipm) asked a question.

How to pass the value of custom attribute in SAML assertion

I have one custom User Type Agent and I added custom attribute called GUID. I used OKTA update API to update the GUID value. like below.

{"profile": {"GUID": "abide"}}

 

I need to use the GUID attribute of Agent user type in SAML application means in SAML assertion I need to pass the GUID attribute. Each user will own have different GUID, none of the user will have same GUID.

 

So my question is how can I pass the GUID attribute in SAML application as attribute in terms of variable. 

I am passing like below. but in SAML assertion , I see GUID as. Agent.GUID only, its. not picking up the value I have set above in update profile API.

 

Name. Name Format.  Value

GUID.  Unspecified.    Agent.GUID

 


    • sdipm (sdipm)

      Thanks for the reply. I have follow up question based on your answer.

      I have added the custom attribute GUID to 3 places - Default Profile(User), Custom User Type(Agent) and apps type user(got created after Application creation)

      So my question is "how many places i need to add the custom attribute"?

      If i don't add the custom attribute to Default Profle(user), how can i use your approach to map the attribute?

      Expand Post
    • sdipm (sdipm)

      Hi Paul,

      Thanks for the reply. I have follow up question based on your answer.

      I have added the custom attribute GUID to 3 places - Default Profile(User), Custom User Type(Agent) and apps type user(got created after Application creation)

      So my question is "how many places i need to add the custom attribute"?

      If i don't add the custom attribute to Default Profle(user), how can i use your approach to map the attribute?

      Expand Post
      • Paul S. (Okta, Inc.)

        Best practices recommend to have the attribute in the Okta User profile. My recommendation is to add the attribute in the user profile to make sure the information is passed along properly.

  • sdipm (sdipm)

    Thanks, the thread can be closed now

This question is closed.
Loading
How to pass the value of custom attribute in SAML assertion