<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
0D51Y00008JQMPRSA5Okta Classic EngineSingle Sign-OnAnswered2024-04-15T09:22:53.000Z2020-04-22T09:33:26.000Z2020-04-29T04:28:40.000Z

bashirK.72426 (Customer) asked a question.

Getting group Ids in the SAML response assertion rather then just the group names

Hey there,

 

I would appreciate getting help as part of Okta integration.

I’m trying to get the user group Ids as part of the SAML assertion response (after user authenticated) but all I could find in docs and forums are that only group names will be provided in the assertion…

Can I do that? Is this even supported?

 

I saw that I can only pick the key and filter according to some options against the group name but can’t control the value in group attributes:

/help/servlet/rtaImage?refid=0EM1Y0000012JYo

As a workaround:

After the SAML assertion received in the client application:

I thought about using the groups API to fetch each group object (include id) using each group name (I’m getting from the assertion) but it’s a bad idea when you have lots of groups.

 

I thought about using the groups API to fetch all group objects (include ids) using the user id (I could get from the assertion) but it might getting me all user groups associated with the user and not with the user and the specific app.

 

Any solution? Any help will be appreciated..

Thanks


  • mofmj (mofmj)

    Can you try to put this in the regex box ?

     

    ^xxx.*$

     

    Replace xxx with beginning of the group name the user is part of , and see how that works

    Selected as Best
  • mofmj (mofmj)

    Can you try to put this in the regex box ?

     

    ^xxx.*$

     

    Replace xxx with beginning of the group name the user is part of , and see how that works

    Selected as Best
  • mofmj (mofmj)

    also , as FYI , we us this with our openID apps and it works , but we have this using claims / scopes

This question is closed.
Loading
Getting group Ids in the SAML response assertion rather then just the group names