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

# User provisioning with SCIM

> Provision, update, and deactivate Merchant App users from your identity provider with SCIM 2.0

Redo is a [SCIM 2.0](https://datatracker.ietf.org/doc/html/rfc7644) service
provider. Your identity provider (IdP) creates, updates, and deactivates your
store's Merchant App users and assigns their roles, so onboarding and
offboarding happen in one place. Endpoint and attribute details are in the
[SCIM reference](https://developers.redo.com/docs/identity/scim.md).

| Setting | Value |
| - | - |
| Base URL | `https://api.redo.com/scim/v2` |
| Authentication | `Authorization: Bearer <SCIM token>` |
| Unique user ID | `userName` (the user's email address) |

## Prerequisites

* The **Admin** role in Redo
* Admin access to an IdP that supports SCIM for custom applications (see
  [Provider notes](#provider-notes))

## Add your identity provider

**1. Open single sign-on settings**

In the [Redo Dashboard](https://app.getredo.com), open **Settings → General →
Identity providers**.

**2. Add the identity provider**

Under **Provisioning**, click **Add identity provider**, enter your IdP name, and
give it a name. Redo generates its SCIM token; copy it.

The token is shown once. **Generate SCIM token** on the identity provider's row
issues a new one and revokes the previous one, so update your IdP in the same
sitting. Each token provisions one store.

## Several identity providers

A store can connect more than one IdP, for example Okta for staff and Entra ID
for contractors. Add each one separately; each gets its own token.

* A user belongs to the first IdP that provisions them. Another IdP can't see,
  update, or deactivate that user, and creating the same email from it returns
  `409`.
* A user added in Redo belongs to the first IdP that changes them.
* Each IdP links its own groups to roles, so two IdPs can both push an `Admin`
  group.
* Removing an IdP revokes its token. The users it provisioned and their roles
  stay, and another IdP can then take them over.

## Provider notes

> [accordion] Okta
>
> Follow [Connect your SCIM app to
> Okta](https://developer.okta.com/docs/guides/scim-provisioning-integration-connect/main/).
> On the Redo app integration, enable SCIM provisioning under **General** →
> **App Settings**, then on the **Provisioning** tab set:
>
> * **SCIM connector base URL**: `https://api.redo.com/scim/v2`
> * **Unique identifier field for users**: `userName`
> * **Supported provisioning actions**: Push New Users, Push Profile Updates,
>   Push Groups
> * **Authentication Mode**: HTTP Header, with the SCIM token
>
> Under **To App**, enable **Create Users**, **Update User Attributes**, and
> **Deactivate Users**. Use **Push Groups** to assign roles.

> [accordion] Microsoft Entra ID
>
> Follow [Configure automatic user
> provisioning](https://learn.microsoft.com/en-us/entra/identity/app-provisioning/configure-automatic-user-provisioning-portal)
> on the Redo enterprise application. Set **Tenant URL** to
> `https://api.redo.com/scim/v2` and **Secret Token** to the SCIM token, then
> **Test Connection**.
>
> Entra provisions only users and groups assigned to the application, and runs
> incremental cycles roughly every 40 minutes. See [SCIM in
> Entra](https://learn.microsoft.com/en-us/entra/identity/app-provisioning/use-scim-to-provision-users-and-groups)
> for attribute mapping details.

> [accordion] Google Workspace
>
> Google Workspace [supports automated
> provisioning](https://support.google.com/a/answer/6087519) only for apps in
> its catalog, not for custom SCIM endpoints. Manage users in Redo directly or
> through another provisioning tool.

## What provisioning does

* **Create**: the user appears under **Settings → General → Users** with no
  roles until a pushed group assigns one. No invitation email is sent.
* **Update**: names sync. The email address is the identifier and can't
  change.
* **Deactivate**: the user is removed from your store's team, and their open
  support conversations return to the queue. The user is kept and can be reactivated; nothing is
  hard-deleted. Their access to other Redo stores is unchanged.
* **Reactivate**: the user rejoins the team with the roles of the SCIM groups
  they belong to.

Full semantics are in the [SCIM reference](https://developers.redo.com/docs/identity/scim.md#users).

## Roles

Pushed SCIM groups map to Redo **roles** by name. A group's display name must
match an existing role under **Settings → General → Roles**, such as `Admin`
or `User`; otherwise the push is rejected. Group membership then adds or
removes that role on each member. A role you assigned in Redo before the group
was pushed stays when the IdP removes the user from the group.

> [!NOTE]
>
> SCIM groups don't create Redo **Groups** (**Settings → General → Groups**),
> which are pools of users for routing support conversations.

## Troubleshooting

> [accordion] Test Connection fails with 401
>
> The token was pasted incorrectly or was revoked by generating a new one.
> Generate a fresh token in Redo and update the IdP.

> [accordion] Group push fails with 400
>
> The group's display name doesn't match a role name exactly. Rename the group
> in your IdP, or create a role with that name under **Settings → General →
> Roles** and retry.

> [accordion] A user was deactivated in the IdP but still has access
>
> Check the IdP's provisioning log for a failed `PATCH` or `DELETE`, and
> confirm the user is assigned to the Redo application. Entra applies changes
> on its next provisioning cycle rather than immediately.


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