How to Access HTTP Header Values in Azure AD Claims Transformation?

Amrit Lal 20 Reputation points
2024-12-16T12:14:05.4333333+00:00

I have an application hosted in Azure AD that uses SSO. The application sends a custom "ABC" value in the HTTP header during the authentication process. I need to capture this value and pass it as a claim to Azure AD for further use.

From my understanding, Azure AD does not natively allow accessing HTTP headers directly in claims rules, unlike ADFS. Please confirm if I'm right.

  • Is there any workaround to achieve this in Azure AD?
  • Would Azure API Management or middleware be suitable for intercepting and injecting the header value into the claim?
  • Are there other recommended approaches for handling such scenarios?
Windows 365 Enterprise
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,632 questions
{count} votes

Accepted answer
  1. James Hamil 26,386 Reputation points Microsoft Employee
    2024-12-18T22:47:50.2333333+00:00

    Hi @Amrit Lal , unfortunately, this is not currently possible.

    I would suggest posting this idea at the Azure Feedback Portal, which is monitored by the product team for feature enhancements. Thank you for your time and patience throughout this issue.

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.