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

  1. 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.
  2. 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.
  3. 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.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy n8n with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.