Skip to content

SCIM Integration

BastionXP Enterprise supports SCIM version 2.0. Integrate it with your identity provider (IdP) using SCIM provisioning.

With SCIM, you manage the people who use BastionXP, and their group membership, in one place: your identity provider. The identity provider sends its users and groups to BastionXP, which works as the SCIM service provider. When somebody joins, changes team or leaves, BastionXP learns about it from your identity provider.

BastionXP can integrate with popular identity providers that support the SCIM protocol, such as Microsoft Entra ID, Okta, Google Workspace and Keycloak.

What BastionXP uses SCIM for

What How BastionXP uses it
Users BastionXP knows the people who may get certificates, and the email address of each. It lists them on the Users page.
Groups BastionXP knows which people belong to which group. It lists the groups on the Groups page, where you give each group its roles.
Administrators The members of the group pki-admins are the administrators of the portal. See Admins and API tokens.

Set it up

  1. In BastionXP, create a token for SCIM. In the portal, choose Settings at the bottom of the menu, then API tokens. Choose Create token, choose the purpose SCIM-PROVISIONING, and copy the token. The portal shows it only once.

    See Admins and API tokens.

  2. In your identity provider, open the SCIM provisioning settings of the BastionXP app. Fill in:

    • the SCIM URL (some providers call it the tenant URL or the base URL), and
    • the secret token, which is the token from step 1.

    If you run BastionXP yourself, the SCIM URL is https://<domain>/scim/v2, for example https://ca.example.com/scim/v2. If you use the BastionXP cloud service, use the SCIM URL that BastionXP gave you.

  3. Choose which users and groups your identity provider sends. At least, send the group pki-admins and its members, and the groups that you want to give roles.

  4. Start the provisioning in your identity provider.

How BastionXP checks the requests

Identity providers use a SCIM client to make RESTful API requests to BastionXP. BastionXP checks each request. It authenticates it with an OAuth bearer token in the Authorization header of the HTTP request. This is the token from step 1.

The token is valid for one year. Make sure that it has not expired. If it expires, your identity provider can no longer send changes, and BastionXP's list of people becomes out of date. Before it expires, create a new token in the portal, and put it in your identity provider.

The SCIM token belongs to the connection between your identity provider and BastionXP, not to the administrator who created it. It keeps working when that administrator leaves.

Check that it works

Open the Users and Groups pages in the portal. They show the users and groups that your identity provider has synchronized.

Do the people that you expect appear? Is the group pki-admins there, with the right people in it?

Some identity providers are slow

Some identity providers do not send changes at once. They may wait 30 to 40 minutes to batch the updates. If your identity provider offers it, push the users and groups to BastionXP by hand.

The SCIM API

The API reference describes the requests that your identity provider sends: