<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
0D54z0000A2AQ7HCQWOkta Classic EngineSingle Sign-OnAnswered2025-10-27T09:00:35.000Z2024-03-06T09:01:45.000Z2024-03-08T09:42:58.000Z

dye4h (dye4h) asked a question.

SAML App, Add multiple groups within the same name

I have multiple groups in Okta, for example below are the groups.

  1. Test
  2. Demo
  3. United
  4. Brazil

How can I add these groups in the SAML assertion if any of these groups are assigned to the User. For example, User has the two groups assigned 'Test' and 'Brazil' so the assertion should be as below.

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

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  Name="Group_Name" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified">

  <saml:AttributeValue xsi:type="xs:string">Test</saml:AttributeValue>

  <saml:AttributeValue xsi:type="xs:string">Brazil</saml:AttributeValue>

</saml:Attribute>


  • dye4h (dye4h)

    I fix this using the below regex.

    .*Test.*|.*Demo.*|.*United.*|.*Brazil.*

    Selected as Best
This question is closed.
Loading
SAML App, Add multiple groups within the same name