n8n SSO with Microsoft Entra ID (SAML)
Connect an Entra Enterprise Application to n8n with SAML and a per-user UPN.
Last updated
On this page (5)
n8n · Microsoft Entra ID · SAML
Before you start
- n8n Cloud Enterprise or self-hosted Business or Enterprise.
- n8n owner or admin and Entra Enterprise Applications admin access.
Configure sign-in
- Copy Redirect URL and Entity ID from n8n’s SAML settings. Create a non-gallery Enterprise Application in Entra and choose SAML; set Reply URL and Identifier to the respective n8n values.
- Configure claims under http://schemas.xmlsoap.org/ws/2005/05/identity/claims/: emailaddress from user.mail, firstname from user.givenname, lastname from user.surname and upn from user.userprincipalname. Assign pilot users.
- Import Entra federation metadata XML into n8n’s Identity Provider Settings. Save and test before activation. Leave role assignment manual unless explicitly configuring and validating role claims.
Verify the result
- Check that user.mail is populated and upn is unique per user.
- Verify the n8n test succeeds and a pilot signs into the intended account with the expected role.
