How to build a Role claim using user group membership

Cristian Csiki 0 Reputation points
2023-11-10T13:40:29.3433333+00:00

Hi,

I am trying to map the Azure user to an AWS role when the user does SSO. I can send 1 claim as:

Claim Name: Role

Namespace: https://aws.amazon.com/SAML/Attributes

Source attribute: arn:aws:iam::123456789:role/user/AWSRole/AWSRole,arn:aws:iam::123456789:saml-provider/AzurePOC

But in this case I only send the Role claim with 1 value to AWS. I need to send the Role claim as an array of attributes with all the group membership the user is assigned to, which either start with a constant or match a string. Ex:




Is there any way I can build this logic?

Thank you.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Microsoft Entra | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Csiki, Cristian 1 Reputation point
    2024-01-24T07:54:15.91+00:00

    This can be closed as I have found by myself a solution to this.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.