Score:0

How to transform Azure AD SAML Groups claim in to a single value

ng flag

The enterprise application consuming my Azure AD IDP SAML assertions does not support multi-valued attributes. So, it does not support the groups claim.

I need to send the user's group memberships as a concatenated string in a single valued attribute.

For instance, a standard SAML claim for groups looks like this:

<Attribute Name="http://schemas.microsoft.com/ws/2008/06/identity/claims/groups">
  <AttributeValue>5581e43f-6096-41d4-8ffa-04e560bab39d</AttributeValue>
  <AttributeValue>07dd8a89-bf6d-4e81-8844-230b77145381</AttributeValue>
  <AttributeValue>0e129f4g-6b0a-4944-982d-f776000632af</AttributeValue>
</Attribute>

I need to convert this in to a single valued claim (this is for AWS SSO), similar to this:

<Attribute Name="https://aws.amazon.com/SAML/Attributes/AccessControl:ADGroups">
      <AttributeValue>|5581e43f-6096-41d4-8ffa-04e560bab39d||07dd8a89-bf6d-4e81-8844-230b77145381||0e129f4g-6b0a-4944-982d-f776000632af|</AttributeValue>
</Attribute>

Is there a way to accomplish this using the Azure AD Identity Provider? Maybe through some type of transformation?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.