---
title: SCIM User Provisioning for TestingBot Teams
description: Add and deactivate TestingBot team members automatically from your identity
  provider with SCIM 2.0. Setup, supported attributes and what deactivation does.
source_url:
  html: https://testingbot.com/support/team/scim
  md: https://testingbot.com/support/team/scim.md
---

# SCIM User Provisioning

SCIM (System for Cross-domain Identity Management, version 2.0) lets your identity provider manage who is on your TestingBot team. When someone is assigned to TestingBot in your identity provider, they are added to your team. When they are unassigned or leave the company, they are deactivated and can no longer sign in.

TestingBot implements the SCIM 2.0 protocol as defined in RFC 7643 (schema) and RFC 7644 (protocol), for **Users**. Groups are not supported: team roles are managed in TestingBot, see [Roles & Permissions](https://testingbot.com/support/team/rbac).

## Requirements

- **SCIM is enabled per account.** [Contact us](https://testingbot.com/contact/new) to have it switched on for your team.
- **SAML single sign-on is configured.** SCIM only creates members whose email address is in one of the domains of your team's [SSO configuration](https://testingbot.com/support/team/sso). Provisioned members sign in through your identity provider.
- **The account owner sets it up.** Only the owner can generate or revoke the SCIM token, because it can add and deactivate every member of the team, admins included.
- A paid plan is needed to add new members.

## Generating the Token

1. Sign in as the account owner and go to [Team Management \> Authentication](https://testingbot.com/members/authentication).
2. In the **SCIM user provisioning** card, copy the **SCIM base URL**.
3. Click **Generate token** and copy the token straight away. It is shown once: TestingBot only stores a hash of it.

Each team has one token. **Generate new token** replaces it, and the previous token stops working immediately. **Revoke token** stops provisioning until you generate a new one; members that were already added are not affected.

## Connecting Your Identity Provider

Any identity provider that can act as a SCIM 2.0 client can connect. It needs three settings:

- **Base URL:** `https://testingbot.com/scim/v2`
- **Authentication:** bearer token, sent as the HTTP header `Authorization: Bearer YOUR_SCIM_TOKEN`
- **Unique identifier for users:** `userName`, which is the member's email address

The names of these fields differ between identity providers. Check your provider's documentation for SCIM provisioning to a custom application.

### Okta

Enable SCIM provisioning on the app integration you use for TestingBot SSO. Enter the base URL above as the SCIM connector base URL, `userName` as the unique identifier field for users, and choose HTTP header (bearer token) authentication with your SCIM token. Turn on creating users and deactivating users. Pushing groups is not supported.

### Microsoft Entra ID

In the enterprise application you use for TestingBot SSO, open **Provisioning** and choose automatic provisioning. Enter the base URL above as the tenant URL and your SCIM token as the secret token, then test the connection. Map the user's email address (for example the user principal name, if it is their email) to `userName`, and remove group provisioning, which TestingBot does not support.

Whatever provider you use, test with one user first: assign them, check that they appear on your [Team Members](https://testingbot.com/members/sub) page, then unassign them and check that they can no longer sign in.

## What Is Synchronised

- **userName** (the member's sign-in email): set when the member is created. It cannot be changed over SCIM afterwards; a member changes their own email from their account settings.
- **name.givenName** and **name.familyName** (or **displayName** ): the member's first and last name, up to 30 characters each.
- **active** : deactivates or reactivates the member.
- **externalId** : stored so your identity provider can find the member again.

Other attributes your identity provider sends are accepted and ignored. New members join with the default member role and your plan's limits; change their role on the [Team Members](https://testingbot.com/members/sub) page. A new member receives an email saying they were added to your team.

## Deactivating a Member

When your identity provider deactivates a member (sets `active` to false, or deletes the user), TestingBot:

- blocks the member from signing in to the dashboard, by password, SSO or social login alike;
- signs them out of every active session;
- replaces their API key and secret, so scripts and CI jobs using the old credentials can no longer start tests or call the API.

Nothing is deleted. The member stays on your team, and their tests, builds and history stay in your account. Reactivating the member lets them sign in again; they will find a new API key and secret in their account settings.

A delete request from your identity provider deactivates the member in the same way and also hides them from SCIM lookups. If the same email address is provisioned again later, the existing member is reactivated.

Tests that are already running when a member is deactivated are not stopped.

## Existing Accounts and Members

- **Members already on your team** are listed over SCIM, so your identity provider can match them by email and manage them. Members you added by hand stay active until your identity provider deactivates them.
- **The account owner and [service accounts](https://testingbot.com/support/team/service-accounts)** are never managed over SCIM.
- **An email address that already has its own TestingBot account** is not moved into your team automatically. It receives a regular team invite, and the SCIM request answers with a conflict (HTTP 409). Once the person accepts the invite, your identity provider can manage them.

## API Reference

All endpoints are under `https://testingbot.com/scim/v2`, accept and return `application/scim+json`, and need the bearer token.

- `GET /ServiceProviderConfig`, `GET /ResourceTypes`, `GET /Schemas`: discovery.
- `GET /Users`: list members, with `startIndex` and `count` (at most 100 per page) and an optional filter.
- `GET /Users/{id}`: one member.
- `POST /Users`: create a member.
- `PUT /Users/{id}`: replace a member's name, externalId and active state.
- `PATCH /Users/{id}`: `add`, `replace` or `remove` operations, with or without a path.
- `DELETE /Users/{id}`: deactivate and hide the member (nothing is deleted).

Filters support `eq` on `userName`, `externalId`, `id` and `emails.value`. Bulk operations, sorting and password changes are not supported. Look up a member by email:

```bash
curl -H "Authorization: Bearer YOUR_SCIM_TOKEN" \
  "https://testingbot.com/scim/v2/Users?filter=userName%20eq%20%22jane%40example.com%22"
```

Deactivate a member:

```bash
curl -X PATCH -H "Authorization: Bearer YOUR_SCIM_TOKEN" \
  -H "Content-Type: application/scim+json" \
  -d '{"schemas":["urn:ietf:params:scim:api:messages:2.0:PatchOp"],"Operations":[{"op":"replace","path":"active","value":false}]}' \
  https://testingbot.com/scim/v2/Users/12345
```

Errors use the SCIM error format, with a `status`, a `detail` message and, where it applies, a `scimType` such as `uniqueness`, `invalidValue` or `mutability`. Requests are rate limited and answer HTTP 429 when the limit is exceeded.

## Audit Log

Generating or revoking the token, and every member your identity provider adds, deactivates or reactivates, is recorded in your team's [audit log](https://testingbot.com/support/team/audit-logs).

## Looking for more help?

Have questions or need more information? Reach out via email or Slack.

[Email us](https://testingbot.com/contact/new) [Join our Slack](https://join.slack.com/t/testingb0t/shared_invite/zt-3bcw9xch-jk19~6XPs_xBrsAgAedkCw)
