Error Code Portal
MicrosoftMicrosoft Entra IDError code

AADSTS501241

Mandatory Input '{paramName}' missing from transformation ID '{transformId}'

Alternative forms: 501241

Code AADSTS501241 · An issue reported by Microsoft Entra ID.

Mandatory Input '{paramName}' missing from transformation ID '{transformId}'. This error is returned while Microsoft Entra ID is trying to build a SAML response to the application. NameID claim or NameIdentifier is mandatory in SAML response and if Microsoft Entra ID failed to get source attribute for NameID claim, it returns this error. As a resolution, ensure that you add claim rules. To add claim rules, sign in to the Microsoft Entra admin center as at least a Cloud Application Administrator, and then browse to Entra ID > Enterprise apps. Select your application, select Single Sign-On and then in User Attributes & Claims enter the Unique User Identifier (Name ID).

Troubleshooting and diagnostic links

First check that the document's product, version, and environment match your situation.