> ## 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 Rapid7 InsightVM single sign-on with Allthenticate

> Set up Allthenticate as the SAML identity provider for the Rapid7 Command Platform, map the required attributes, and optionally sync groups with rbacGroups.

The Rapid7 Command Platform hosts InsightVM (Cloud). You test with one user, then roll out to everyone.

## Before you start

* A Rapid7 Command Platform account with the **Platform Administrator** role.
* An Allthenticate admin portal account that can manage **SSO**.
* A test user who exists in both Allthenticate and Rapid7 with exactly the same email address, including capitalization.

For the general Allthenticate SAML steps, see [SAML single sign-on](https://help.allthenticate.com/help/sso/saml.md). Rapid7's reference is its [single sign-on documentation](https://docs.rapid7.com/insight/single-sign-on/).

## Configure in Allthenticate

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

In the Command Platform, select **Administration** > **Settings**, then the **SSO Settings** tab under **Authentication Settings**. In the **Copy the following data into your IdP** section, copy the **Assertion Consumer Service (ACS) URL**, the **Audience (or Entity) ID** and the **Relay State URL**.

**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 Rapid7's audience 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.

> [!NOTE]
>
> The Allthenticate service provider form has no relay state field. Allthenticate returns the relay state that Rapid7 sends with each sign-in request, so you don't need to enter Rapid7's **Relay State URL**.

**3. Add the attributes**

Rapid7 matches attribute names exactly, including capitalization. Under **Custom Attribute Statements**, select **Add Attribute** for each:

| Name | Value | Required |
| - | - | - |
| `FirstName` | `user.firstName` | Yes |
| `LastName` | `user.lastName` | Yes |
| `Email` | `user.email` | Yes |
| `rbacGroups` | `user.groups` | Only for [group sync](#optional-sync-groups) |

**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** to save the signing certificate.

**5. Assign the test user**

Assign your test user to the Rapid7 service provider.

## Configure in Rapid7

**1. Upload the certificate**

On Rapid7's **SSO Settings** tab, upload `Allthenticate-Public.crt` in the IdP certificate field. Rapid7 won't save the configuration without a valid certificate.

**2. Enter the identity provider values**

In the **IdP Metadata** section, set **Entity ID** to the **Entity ID** from Allthenticate and **Single Sign-On Service URL** to the **SSO Endpoint**.

**3. Save without enforcing SSO**

Save the configuration. Don't enforce SSO yet.

**4. Switch the test user to SAML**

Edit the test user in Rapid7 and change their authentication method to **SAML**.

## Test sign-in

1. Open your Command Platform login URL in a private browser window, so existing sessions don't hide problems.
2. Start an SSO login. Rapid7 redirects you to Allthenticate.
3. Approve the request on the test user's phone. The first time, scan the QR code so the browser is trusted.
4. You land in the Command Platform, signed in as the test user.

### Roll out to everyone

1. Assign the Rapid7 service provider to all your production users, or to the Allthenticate group they belong to.
2. Make sure every Rapid7 user has an Allthenticate account with the same email. Anyone without one is locked out once you enforce SSO.
3. In Rapid7, enforce SSO as the required login method.
4. Keep at least one Platform Administrator account that doesn't use SSO, with its credentials in your secrets vault, so you can get back in if the integration breaks.

### Optional: sync groups

With group sync, Rapid7 reads the `rbacGroups` attribute at each sign-in and puts the user in the Command Platform user groups with the same names, along with their product access, roles and permissions.

1. In Rapid7, create the user groups under **Administration** > **Users** > **User Groups**. Their names must match your Allthenticate group names exactly.
2. In Allthenticate, add the `rbacGroups` attribute mapped to `user.groups` on the service provider.
3. In Rapid7's **SSO Settings**, turn on **Group Synchronization**.

> [!WARNING]
>
> Group sync removes users from any Command Platform group that isn't in their sign-in assertion, at every sign-in. Direct role assignments and default access profile permissions stay, but group membership is then controlled entirely by Allthenticate. Test it before using it in production.

For help, email [help@allthenticate.com](mailto:help@allthenticate.com). For Rapid7 settings, contact Rapid7 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)
* [Rapid7: Single sign-on](https://docs.rapid7.com/insight/single-sign-on/)


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