SSO / SAML

On this page
  1. Entra app registration
  2. Email domains
  3. Group → role mapping
  4. Test vs enforce
  5. Break-glass Owner

Connect Microsoft Entra ID (or another SAML 2.0 IdP) under Settings → SAML SSO. Owners and Admins manage this page.

SSO settings
Enable SAML, set metadata, claim email domains, map groups, then test before enforce.

Entra app registration

  1. In Entra, register an enterprise app / SAML application for NP4th.
  2. Copy your tenant slug from NP4th (organization identifier used in URLs).
  3. Register these service-provider values (base https://app.np4th.com):
FieldURL
Entity IDhttps://app.np4th.com/api/auth/saml/{slug}
ACS (Reply URL)https://app.np4th.com/api/auth/saml/{slug}/acs
SP metadatahttps://app.np4th.com/api/auth/saml/{slug}/metadata
Loginhttps://app.np4th.com/api/auth/saml/{slug}/login
  1. In NP4th, enable Enable SAML SSO and paste the IdP metadata URL (or IdP metadata XML).
  2. Optionally Download SP metadata (np4th-sp-metadata.xml) for your IdP.

Accounts match by Entra object ID claim http://schemas.microsoft.com/identity/claims/objectidentifier. Profile field placeholder: Entra object ID (oid).

Email domains

Under Email domains, list one domain per line for SSO discovery. Public providers (gmail, outlook, and similar) cannot be claimed.

Group → role mapping

SettingPurpose
Admin groupsEntra group object IDs and/or names → Admin
User groupsEntra group object IDs and/or names → User
Default role if no group matchUser or Admin
Require Entra group membership to sign inBlock users with no matching group
JIT provision users on first SSO sign-inCreate users automatically on first login

Highest group match wins. Owner is not assigned by default SSO mapping—Owners remain break-glass accounts.

Test vs enforce

  1. Save settings with Save SAML settings.
  2. Use Test SSO claims to validate assertions and group mapping.
  3. Only then enable Enforce SSO (password sign-in: Owners only).
Warning

With enforce on, non-Owner users must use SSO. Keep at least one active Owner who can still use password sign-in.

Break-glass Owner

If SSO misconfiguration locks out Admins/Users:

  1. Open the Owner break-glass login: /dashboard/local.html (or ?local=1 / ?nosso=1 on the dashboard).
  2. Sign in as an Owner with password.
  3. Fix SAML settings or turn off enforce.

Title on that page: NP4th Owner break-glass login.