> ## Documentation Index
> Fetch the complete documentation index at: https://help.allthenticate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up NinjaOne single sign-on with Allthenticate

> Set up Allthenticate as the SAML identity provider for NinjaOne: exchange metadata, map email and name attributes, and test the SP-initiated sign-in URL.

NinjaOne's own reference is its guide to [configuring single sign-on](https://www.ninjaone.com/docs/new-to-ninjaone/identity-access-management-saml-sso-mfa-scim/ninjaone-identity-access-management-configure-single-sign-on/).

## Before you start

* An Allthenticate admin portal account that can manage **SSO**.
* A NinjaOne account with the **Administrator** role.
* A test user who exists in both Allthenticate and NinjaOne with exactly the same email address, including capitalization.
* Your NinjaOne regional instance: `app.ninjarmm.com` (US), `eu.ninjarmm.com` (EU), `oc.ninjarmm.com` (Oceania) or `ca.ninjarmm.com` (Canada). The SAML configuration applies only to the instance you set it up on.

> [!WARNING]
>
> Don't enforce SSO in NinjaOne until your test user has signed in through the full flow. Keep at least one administrator account that doesn't use SSO, so you can get back in if the integration breaks.

For the general Allthenticate SAML steps, see [SAML single sign-on](https://help.allthenticate.com/help/sso/saml.md).

## Configure in Allthenticate

**1. Get NinjaOne's service provider values**

In NinjaOne, go to **Administration** > **Apps** > **Single Sign-On** (the location can differ between NinjaOne versions) and create a SAML configuration. In **Service Provider Details**, copy the **Assertion Consumer Service (ACS) URL** and the **Service Provider Entity ID** (audience).

**2. Add the service provider**

In the admin portal, go to **SSO** > **SAML** and select **Add Service Provider**. Enter a **Provider Name**, uncheck **Use Metadata File**, and paste NinjaOne's entity ID into **Entity ID** and its ACS URL into **ACS URL**. The [SAML setup guide](https://help.allthenticate.com/help/sso/saml.md#register-the-service-provider-in-allthenticate) shows the dialog with **Use Metadata File** unchecked.

**3. Add the attributes**

Under **Custom Attribute Statements**, select **Add Attribute** for each:

| Name | Value | Use |
| - | - | - |
| `email` | `user.email` | Required. Identifies the user. |
| `firstName` | `user.firstName` | Recommended. Used when NinjaOne creates users on first sign-in. |
| `lastName` | `user.lastName` | Recommended. Used when NinjaOne creates users on first sign-in. |

NinjaOne's expected attribute names can vary by region and version. Check the names on NinjaOne's SSO page and match them exactly, including capitalization.

**4. Save and copy the identity provider values**

Select **Save**, then open the service provider from the list. Under **Metadata**, copy the **SSO Endpoint** (`https://saml.allthenticate.com/saml/sso/<sp-id>`) and the **Entity ID** (`https://saml.allthenticate.com/saml/metadata/<sp-id>`), and select **Download Public Key** for the signing certificate. **Download Metadata** saves all of these in one XML file, which some NinjaOne versions can import directly.

## Configure in NinjaOne

**1. Enter the identity provider values**

Back on NinjaOne's SSO page, fill in the **Identity Provider** section, or import the metadata file:

| NinjaOne field | Value |
| - | - |
| IdP Entity ID / Issuer | The **Entity ID** from Allthenticate |
| IdP Single Sign-On URL | The **SSO Endpoint** from Allthenticate |
| IdP X.509 Certificate | The contents of `Allthenticate-Public.crt` |
| NameID Format | `EmailAddress` |

**2. Choose how users are created**

To have NinjaOne create users on their first SSO sign-in, turn on **JIT (Just-In-Time) provisioning** and set a default role. Without a default role, new users sign in with no permissions.

**3. Save without enforcing SSO**

Save the configuration. Don't enforce SSO yet.

## Test sign-in

NinjaOne's normal login form asks for an email and password and doesn't redirect to SSO. Test with the dedicated SP-initiated login URL instead.

1. On NinjaOne's SSO page, copy the URL labeled **SP-Initiated Login URL**, **SSO Login URL** or **Service Provider Login URL**. If you can't find it, it's the `SingleSignOnService` endpoint in NinjaOne's SP metadata XML.
2. Open the URL in a private browser window, so existing sessions don't skip steps.
3. NinjaOne redirects straight to Allthenticate. Approve the request on the test user's phone.
4. You land on the NinjaOne dashboard, signed in as the test user.

Once this works, you can enforce SSO in NinjaOne.

## Troubleshooting

> [accordion] NinjaOne shows its normal login form instead of Allthenticate
>
> You opened the standard login page (for example `app.ninjarmm.com/auth/login`), which is for local accounts. Use the SP-initiated login URL from NinjaOne's SSO page.

> [accordion] Email not found, or the user isn't provisioned
>
> The email Allthenticate sent doesn't match a NinjaOne user. Check that the `email` attribute maps to `user.email` and that the addresses match exactly. To create users automatically, turn on JIT provisioning with a default role.

> [accordion] Invalid audience or signature error
>
> The **Entity ID** on the Allthenticate service provider doesn't match NinjaOne's SP entity ID. Copy it again from NinjaOne and update it in Allthenticate.

> [accordion] Invalid certificate or signature validation failure
>
> NinjaOne has a different certificate from the one Allthenticate signs with. Download the public key or metadata again and re-enter it in NinjaOne, making sure nothing was cut off.

> [accordion] InResponseTo rejected, or unsolicited response
>
> NinjaOne received a response it didn't ask for, because the sign-in started at Allthenticate instead of NinjaOne. Start from NinjaOne's SP-initiated login URL.

For help, email [help@allthenticate.com](mailto:help@allthenticate.com). For NinjaOne settings, contact NinjaOne support through its customer portal.

## Related

* [Set up Allthenticate as a SAML identity provider](https://help.allthenticate.com/help/sso/saml.md)
* [Single sign-on overview](https://help.allthenticate.com/help/sso/overview.md)
* [NinjaOne: Configure single sign-on](https://www.ninjaone.com/docs/new-to-ninjaone/identity-access-management-saml-sso-mfa-scim/ninjaone-identity-access-management-configure-single-sign-on/)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.