> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Map identity provider groups to MCP tool access with SCIM
URL: https://metorial.com/docs/platform/guides/map-idp-groups-to-tool-access

Provision directory groups with SCIM, link each one to a Metorial access group on its SSO tab, and share integrations with that access group to control tools.

---

To map identity provider groups to tool access, provision the groups to Metorial with SCIM, open the access group in your portal, and on its **SSO** tab choose **Selected SSO groups** and pick the directory groups. Everyone in those directory groups joins the access group and gets the integrations shared with it.

**What you'll learn**

* How to get directory groups into Metorial
* How to link them to access groups
* How to check one person's result

**Before you start**

* An SSO connection: [Entra ID](https://metorial.com/docs/platform/guides/sso-entra-id), [Okta](https://metorial.com/docs/platform/guides/sso-okta), or [Google Workspace](https://metorial.com/docs/platform/guides/sso-google-workspace)
* A portal with the integrations you want to share

## In the dashboard

### 1. Add a SCIM directory

In **Enterprise Admin**, open **Security**, **Authentication**, and open your connection. Select **Directories**, then **Add Directory**, choose the **Directory provider**, and select **Create Directory**. Copy the **SCIM endpoint** and **Bearer token** into your identity provider. The token is shown once. Directory providers are Microsoft Entra ID, Okta, OneLogin, JumpCloud and generic SCIM v2.0.

### 2. Push the groups

In Okta, push each group on the **Push Groups** tab. In Entra ID, assign the groups to the enterprise application.

### 3. Confirm they arrived

On the connection, open **Groups**. For a provider without SCIM, groups appear after people sign in with a `groups` attribute. To add one by hand, select **Create Group** and enter an **Identifier** that matches the group in your identity provider exactly.

### 4. Link them to an access group

In Workforce, open your portal, then **Access**, **Access Groups**, and open a group. On its **SSO** tab, set **Access** for your connection to **Selected SSO groups**, add the directory groups under **SSO Groups**, and select **Save Changes**. **Everyone has access** puts every person from that connection in the group.

### 5. Share integrations with the access group

Open **Access**, **Shared Resources**, open a resource, and add the access group.

To limit who can enter the portal at all, open the portal's **Settings**, then **SSO**, and choose **Everyone has access**, **Selected SSO groups**, or **No access** for each connection.

## With the CLI

The SSO mapping is set in the dashboard. Access groups and what they can use can be scripted:

```bash
metorial-admin portals list
metorial-admin portals groups create <portal-id> --name Engineering
metorial-admin portals access list <portal-id> --consumer-group-id <group-id>
```

## Check it worked

A person in the directory group signs in and runs `metorial whoami`. It prints their account, the portal and their groups.

```bash
metorial login
metorial whoami
```

As an admin, open the connection's **Users**, select the person, and read **Groups**. Then open the same person under **Identity**, **Accounts** in the portal and select **Access**.

Remove a test person from the directory group. After the next SCIM sync, the directory's **Logs** show the request and the access group no longer lists them. Entra ID syncs about every 40 minutes. Metorial also removes the integrations they lost from their connected clients in the background.

## Troubleshooting

### "SSO is unavailable."

The organization has no SSO connection, or the plan does not include SSO. See [pricing](https://metorial.com/pricing).

## Next steps

* [Different tools for different teams](https://metorial.com/docs/platform/guides/different-tools-for-different-teams): share resources with each access group
* [Offboard a user](https://metorial.com/docs/platform/guides/offboard-a-user): what deprovisioning removes
* [SSO and SCIM overview](https://metorial.com/docs/platform/guides/sso-and-scim): connections, directories and supported providers