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

# SCIM user provisioning guide for new customers

> Keep your Within users and their roles in sync with your identity provider, using SCIM directory sync and Within's self-serve, guided setup wizard.

You want people to get access to Within, change role and lose access automatically, based on your company directory, so nobody has to add or remove users by hand. Within supports **SCIM (System for Cross-domain Identity Management) user provisioning**, also called directory sync, and you set it up yourself in a guided wizard that you open from a setup link we email you.

## What directory sync does

Once it is set up:

* **Joiners:** people you add to your Within groups get access with the right role.
* **Movers:** people who move between groups get their new role.
* **Leavers:** people you remove or deactivate lose access.
* **Profiles:** names, email addresses and profile details such as job title stay up to date.

You manage all of this in your identity provider. You no longer manage these users in Within.

> [!NOTE]
>
> **In short:** SCIM decides **who** has access and **which role** they have. Single sign-on (SSO) decides **how** they sign in. They work independently, and we recommend both. To set up SSO, see the [SSO configuration guide](https://docs.within.ai/user-docs/admin/sso-setup.md).

## Prerequisites

Choose one person to run the setup for your organisation. Before they begin, make sure they have:

1. **Admin access to your identity provider.** The wizard has guided paths for:
   * Okta
   * Microsoft Entra ID (Azure AD)
   * Google Workspace
   * OneLogin
   * JumpCloud
   * PingFederate
   * CyberArk
   * Any other provider that supports SCIM 2.0, through the **Custom SCIM** path
2. **A plan for your groups:** which groups give which Within role. See [Plan your groups](#plan-your-groups) below. This is the only real decision in the setup.
3. **The Within workspace these users belong to.** Directory sync manages one workspace.

Share that person's name and email, and the workspace, with your Within contact. We send them the setup email in Step 1.

> [accordion] Details for your vendor intake or security review
>
> | Field | Within's answer |
> | - | - |
> | Vendor name | Within (formerly Klarity) |
> | Provisioning protocol | SCIM 2.0. Google Workspace connects through its directory API instead. |
> | Supported identity providers | Okta, Microsoft Entra ID (Azure AD), Google Workspace, OneLogin, JumpCloud, PingFederate, CyberArk, any SCIM 2.0 provider (Custom SCIM path) |
> | How roles are assigned | By group membership. You map each group to a Within role in the setup wizard. |
> | User data Within keeps | Name, work email, job title, department, manager, region, country, start date, plus any other custom attributes you send |
> | User data Within does not keep | Addresses and phone numbers |
> | Vendor contact | Your Within contact, or [support@within.ai](mailto:support@within.ai) |

## Plan your groups

Each person in your Within workspace has **one role**. Your directory groups decide which one: in the wizard, you map each group to a Within role.

| Within role | What they can do | Example group |
| - | - | - |
| Workspace Admin | Everything a Contributor can do, plus manage users and workspace settings | `Within - Admins` |
| Contributor | Create and edit process captures, run interviews and Companion sessions, use Advisor | `Process Excellence` (a group you already have) |
| Basic Contributor | Contribute to Within without access to the Process Index | `Within - Basic Contributors` |
| Viewer | View processes and outputs in the Process Index | `Within - Viewers` |

See [User roles](https://docs.within.ai/user-docs/admin/add-a-user-to-your-workspace.md#user-roles) for the full role descriptions.

**You don't need a new group for every role.** Start from the groups you already have:

**1. Map the group you already have for the most common role**

Start with the role most people will have. For example, if 90% of your Within users will be Contributors and you already have a group with those people, such as `Process Excellence`, map that group to **Contributor**.

**2. Create groups only for the remaining roles**

Create groups such as `Within - Admins`, `Within - Basic Contributors` and `Within - Viewers`, and add the right people to each.

**Role order.** If someone is in more than one group, Within gives them the highest of those roles. The default order is Workspace Admin > Contributor > Basic Contributor > Viewer. For example, a person in both `Process Excellence` (Contributor) and `Within - Admins` is a Workspace Admin. Need a different order? Ask your Within contact and we'll change it for your organisation.

> [!WARNING]
>
> **Only people in the groups you sync get access.** Group membership is what grants access, so keep these groups limited to people who should use Within.

## Step 1: Check your inbox for the SCIM setup email

Search your inbox for an email with the subject **"Set up SCIM for \[your domain] on Within"**, sent from Within (`no-reply@within.ai`).

The email has a **"Set up SCIM for \[your domain]"** button that opens the setup wizard. The button works for **7 days**. If you don't finish in one sitting, reopen the email and click it again to pick up where you left off.

No email? Check spam or quarantine, and ask your IT team to allowlist `no-reply@within.ai`. If it still hasn't arrived, or the link has expired, ask your Within contact to send a new one.

![The email from Within (no-reply@within.ai) titled Set up SCIM for your domain on Within, with a Set up SCIM button that works for 7 days.](https://mintcdn.com/within-docs/ApB2j8lh5Rou0up1/images/scim-setup-email.png?fit=max\&auto=format\&n=ApB2j8lh5Rou0up1\&q=85\&s=947093ff911746c8531dbef7085a7a6b)

## Step 2: Complete the guided wizard

Click **"Set up SCIM for \[your domain]"** to open **Configure Directory Sync**.

**1. Select your identity provider**

Pick your provider from the list, or choose **Custom SCIM** if yours isn't listed.

![The Select your identity provider screen, listing Okta, Entra ID (Azure AD), Google Workspace, CyberArk, JumpCloud, OneLogin and PingFederate, with Custom SCIM below the list.](https://mintcdn.com/within-docs/ApB2j8lh5Rou0up1/images/scim-provider-select.png?fit=max\&auto=format\&n=ApB2j8lh5Rou0up1\&q=85\&s=776c8117e3d0ec8b1aba5f2a46b7335a)

**2. Connect your directory**

Follow the in-wizard instructions for your provider:

* **Google Workspace:** sign in as a Google Workspace admin and allow access.
* **Okta, Entra ID and other SCIM providers:** create the Within app in your identity provider, then paste the endpoint and token the wizard gives you.

**3. Choose groups**

Choose the groups from your plan.

* For Google Workspace, choose **Sync specific groups** and tick only your Within groups. **Sync all groups** gives everyone in your directory access to Within.
* For SCIM providers, assign your Within groups to the Within app in your identity provider. The wizard shows the steps.

![Step 2: Choose groups, with Sync specific groups selected rather than Sync all groups and the groups to sync ticked. The note below the list says new groups in your directory need to be added manually.](https://mintcdn.com/within-docs/ApB2j8lh5Rou0up1/images/scim-choose-groups.png?fit=max\&auto=format\&n=ApB2j8lh5Rou0up1\&q=85\&s=64ec0d424f306aa40f4c27bafd7b1c4e)

**4. Map groups to roles**

Pick a Within role for every group you sync.

![Step 3: Map Groups to Roles, where you pick a Within role for each synced group from the Role list.](https://mintcdn.com/within-docs/ApB2j8lh5Rou0up1/images/scim-map-groups-to-roles.png?fit=max\&auto=format\&n=ApB2j8lh5Rou0up1\&q=85\&s=5a687a14ac2b202c8493d40231820aab)

**5. Test the connection**

Select **Start sync**. A full sync usually takes a few minutes, longer for large directories.

![Step 4: Test Directory Connection, with the Start sync button on the right.](https://mintcdn.com/within-docs/ApB2j8lh5Rou0up1/images/scim-test-connection.png?fit=max\&auto=format\&n=ApB2j8lh5Rou0up1\&q=85\&s=81e9a898ed7e91976474d6eddac35309)

## Step 3: Within connects your directory to your workspace

Let your Within contact know you have finished the wizard. We then connect your directory to your Within workspace:

* **New people:** anyone in your synced groups who doesn't have a Within account yet is added with the role from their group.
* **People who already use Within** are not changed until you have reviewed them with us. We send you a list showing each person's current Within role next to the role your groups give them, with every difference marked.
  * If the groups are wrong, fix the groups.
  * If the list is right, confirm it.
  * Once you confirm, your directory decides their role from then on. Anyone whose role differs moves to the role from their groups.

> [!TIP]
>
> Review the list carefully. For example, someone who is a Workspace Admin in Within today but is only in your Contributor group becomes a Contributor once you confirm.

## Step 4: Check that it works

**1. Open the Users list**

In Within, open **Workspace Settings** (gear icon) and go to **Users**. People from your directory are listed with the role their group gives them.

**2. Check a synced person's menu**

Open the menu (**⋮**) next to a synced person. **Edit User** is greyed out with the note **"Managed by your company directory"**. Change their role through your groups instead.

![The Users list in Within, showing each person's role. In the menu for a person managed by the directory, Edit User is disabled with the note Managed by your company directory.](https://mintcdn.com/within-docs/ApB2j8lh5Rou0up1/images/scim-managed-user.png?fit=max\&auto=format\&n=ApB2j8lh5Rou0up1\&q=85\&s=8ec9366dde0dc0988c89861499c0cacd)

**3. Sign in as a new person**

Ask a new person to sign in at `app.within.ai` with their work email.

## What happens when your directory changes

Make every change in your identity provider. Within follows it.

| In your identity provider | What happens in Within |
| - | - |
| Add someone to a synced group | They get access with that group's role |
| Add someone to a group with a higher role | Their role goes up |
| Remove someone from their highest-role group | Their role drops to the next highest group they're still in |
| Change someone's name or email | Their account is updated. They sign in with the new email; their work and access stay the same. |
| Change job title, department, manager or other profile details | Their Within profile is updated |
| Clear a profile detail | It is cleared in Within too |
| Remove someone from all synced groups, or deactivate them | They lose access to the workspace and see **"You don't have a role in this workspace"** when they sign in |
| Add them back | They get **the same account** back, with the role from their groups |

**How quickly changes arrive:** Within picks up a change a few minutes after your identity provider sends it. Each provider sends changes on its own schedule:

* Okta sends changes as they happen.
* Microsoft Entra ID sends them on its provisioning cycle, about every 40 minutes.
* Google Workspace is checked on a schedule. Allow up to an hour.

### Changing someone's role

> [!WARNING]
>
> **To change someone's role, add them to the new group first, then remove them from the old one.** If you remove them first, they lose access, and get it back only when the new group syncs.

### Removing someone

Someone you remove from all synced groups, or deactivate, sees this message when they sign in:

![The Within sign-in screen with the error “You don't have a role in this workspace. Please reach out to Within support.” under the email field.](https://mintcdn.com/within-docs/ApB2j8lh5Rou0up1/images/scim-no-access.png?fit=max\&auto=format\&n=ApB2j8lh5Rou0up1\&q=85\&s=7a417d5b3b1030e16895c17945209444)

> [!WARNING]
>
> **Using Okta?** To remove someone, **deactivate** them or unassign them from the Within app. **Suspending** a user in Okta doesn't tell Within, so they keep their access.

## Custom roles

The four standard roles cover most teams. If you need a role of your own, for example a **Reviewer** with access between Contributor and Basic Contributor, Within can add it.

**1. Ask your Within contact for the role**

Tell us what the role should allow, and where it sits in the order (for example, below Contributor and above Basic Contributor).

**2. We create it**

We create the role in your workspace and add it to the role list in your setup wizard. You choose its permissions with us; nothing else changes for other users.

**3. Create or choose a group**

Create or choose a group for the people who need the role, and make sure that group is synced.

**4. Map the group to the new role**

Map it in the setup wizard. Ask your Within contact for a link to the wizard.

**5. We confirm, and the role goes live**

People in the group get the new role. Until we confirm, they keep their current access, and new people in the group are added once the role is ready.

Need to remove a custom role later? Ask your Within contact.

> [!WARNING]
>
> When a custom role is removed, everyone who still has it drops to **Viewer**. Move them to another group first.

## Changing your setup later

| You want to | Do this |
| - | - |
| Add or remove people, change roles | Change group membership in your identity provider. Nothing is needed in Within. |
| Sync a new group, or change which role a group maps to | Ask your Within contact for a link to the setup wizard, then update **Choose groups** or **Map Groups to Roles**. New groups are not synced automatically. |
| Add a custom role | See [Custom roles](#custom-roles) |
| Bring back someone a Workspace Admin removed in Within | Contact support (see [Can we still remove people in Within?](#can-we-still-remove-people-in-within)) |

## When to contact support

Contact support if:

* You don't receive the setup email, or the setup link has expired.
* Your identity provider isn't listed and you're unsure whether to use the **Custom SCIM** path.
* The connection test fails, or people in your groups don't appear in Within after a sync.
* Someone has the wrong role, or can't sign in after being added to a group.

> [!NOTE]
>
> **When you contact support, include:** your organisation name, your domain, your identity provider, the email of an affected person, the groups they are in, and a screenshot of any error.

## Frequently asked questions

> [accordion] Do we need SSO before we set up SCIM?
>
> No. SCIM manages who has access and their role; SSO manages how they sign in. You can set them up in either order, but we recommend both. See the [SSO configuration guide](https://docs.within.ai/user-docs/admin/sso-setup.md).

> [accordion] Why do roles come from groups and not a user attribute?
>
> Every identity provider sends group membership changes reliably, so the role stays right as people join, move and leave. You also see who has which role just by looking at your groups.

> [accordion] Do we need a group for every role?
>
> No. Map the group you already have for the role most people will have, for example Contributor. Then create groups only for the remaining roles you use. See [Plan your groups](#plan-your-groups).

> [accordion] Someone is in two of our groups. Which role do they get?
>
> The higher one. The default order is Workspace Admin > Contributor > Basic Contributor > Viewer. Ask your Within contact if you want a different order. To lower someone's role, remove them from the higher group. Adding them to a lower group changes nothing.

> [accordion] What happens to people who already use Within?
>
> Nothing changes for them until you have reviewed them with us. We send you a list showing their current Within role next to the role your groups give them. Once you confirm, your directory decides their role from then on. See [Step 3](#step-3-within-connects-your-directory-to-your-workspace).

> [accordion] What happens to Within users who aren't in our directory?
>
> Nothing. Directory sync never removes people it doesn't manage, such as contractors on another domain. We can share a list of workspace members who aren't in your directory, so you can decide whether to add them to a group or remove them in Within.

> [accordion] Can we still edit users in Within?
>
> Not people managed by your directory. Their name, email, profile and role come from your identity provider, so **Edit User** is disabled for them. People who aren't in your directory are managed in Within as before.

> [accordion] Can we still remove people in Within?
>
> Yes. A Workspace Admin can still remove a synced person in Within, and that removal sticks even though the person is still in your groups. To give them access again, contact support.

> [accordion] What happens to someone's work when they leave?
>
> Their processes and documents stay in the workspace. If they come back, they get the same account, with the role from their groups. Their [Team](https://docs.within.ai/user-docs/advanced/fine-grained-access-control.md) memberships are not restored, so add them to their Teams again.

> [accordion] Someone also has access to another Within workspace. What happens when they leave?
>
> Directory sync manages one workspace. Removing someone from your directory removes them from that workspace only. Access to other workspaces doesn't change.

> [accordion] What profile information does Within keep?
>
> Name, work email, job title, department, manager, region, country, start date, and any other custom attributes you send, such as employee type or cost center. Within doesn't keep addresses or phone numbers. Fill in these details in your identity provider before you start: a detail your directory leaves empty is empty in Within too.

> [accordion] We created a new group in our directory. Why isn't it syncing?
>
> New groups aren't synced automatically. Ask your Within contact for a link to the setup wizard, add the group under **Choose groups**, then map it to a role.

> [accordion] Someone's email changed and they can't sign in with the new one
>
> Check that the new email is on one of your organisation's domains. If the new email already belongs to another Within account, Within doesn't merge the two automatically. Contact support and we'll sort it out with you.

> [accordion] Can we turn it off?
>
> Yes. Ask your Within contact. Everyone keeps their current access and role, and you manage users in Within again.

> [!NOTE]
>
> **Need help?** Use the in-app chat — click the chat bubble in the bottom-right corner of Within (staffed 24×5) — or email [support@within.ai](mailto:support@within.ai).


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