MetorialDocs

Map identity provider groups to MCP tool access with SCIM

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

In the dashboard

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.

Push the groups

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

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.

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.

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:

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.

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.

Next steps