Is there any way to send static value claims in SAML token, based on the group membership of the user?

Rajat Bakshi 1 Reputation point
2022-04-21T11:33:27.06+00:00

We have to send a static value (approved or not approved) in SAML token, based on the condition that if the user is part of a particular group or not.
But based on my research, there is no way to send conditional claims in SAML token.
Is there a alternate solution to this problem?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,471 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,551 Reputation points
    2022-04-25T11:31:42.62+00:00

    Hello @Rajat Bakshi ,

    Thanks for reaching out.

    Based on your question, I understand you want a static SAML claim based on the user's group membership. Please correct me if I have misread anything.

    You may customize claims issued in the SAML token for enterprise applications, and you can also emit static claims based on the user's group membership, as illustrated below. For further information, see this article.

    For an example, from my lab I test condition-based claims based on the user's membership in Group A with a static value of "Approved," so that when the user authenticates to this application, Azure AD emits a static claim if the user is a member of "Group A."

    Steps to create condition-based claims:

    196162-image.png

    Condition Based calim
    196152-image.png

    Outcome:

    196172-image.png

    -----
    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.
    0 comments No comments