MetorialDocs

What happens to MCP access when an employee leaves the company

With SCIM, deactivating someone in your identity provider deprovisions them in Metorial and revokes their access. Without SCIM, an admin deletes their profile.

With a SCIM directory connected, deactivating someone in your identity provider marks them deprovisioned in Metorial, clears their groups and revokes their access. Without SCIM, delete their profile in the portal. Either way, delete their tokens and disable their accounts in the apps.

What you'll learn

  • What deprovisioning removes
  • How to offboard someone by hand
  • How to confirm their tool calls stopped

Before you start

What ends, and when

ItemWith SCIMWithout SCIM
Directory groups and roles in MetorialCleared when the SCIM request arrivesUnchanged
Access through groups, including groups assigned by handRevokedEnds when you delete the profile
Metorial sessionsRevoked once every SSO identity of the person is deprovisionedSigned out when you delete the profile
Integrations in already-connected AI clientsRemoved in the backgroundRemoved when access is removed
The person's app connections and credentialsArchived when the profile is deletedArchived when the profile is deleted
Accounts in the apps themselvesNot touchedNot touched
Past tool callsKept in the logsKept in the logs

A client's sign-in to the Magic MCP URL issues tokens that last up to 30 days, so access has to end in Metorial as well as in the identity provider.

With SCIM

Deactivate the person in your identity provider

In Okta, Deactivate Users must be on under Provisioning, To App. Entra ID sends the change in its next sync, about every 40 minutes.

Confirm the SCIM request

In Enterprise Admin, open Security, Authentication, your connection, Directories, the directory, and Logs. The request for the person shows its status code.

Without SCIM

Disable the identity provider account

This stops new SSO sign-ins.

Delete the profile

In Workforce, open your portal, then Identity, Accounts, and select the person. Open Settings and select Delete Profile under Danger Zone. This signs out their portal sessions and archives their identities and credentials.

Revoke their devices

If the person used Metorial Desktop, open the account's Devices page and select Revoke Device for each computer.

In both cases

Delete the Magic MCP tokens the person's scripts used, and disable their accounts in GitHub, Google Workspace and the other apps. If they set up a shared connection or a custom OAuth app, rotate that credential in the app.

# Find the person
metorial-admin consumers list --email [email protected]

# Delete tokens their jobs used
metorial-admin magic-mcp tokens list
metorial-admin magic-mcp tokens delete <magic-mcp-token-id>

# Revoke identity delegations that involve their actor
metorial-admin identity actors list --consumer-id <consumer-id>
metorial-admin identity delegations list --owner-actor-id <actor-id>
metorial-admin identity delegations revoke <identity-delegation-id>

Check it worked

List the person's tool calls and confirm none is newer than the offboarding time:

metorial-admin sessions tool-calls list --consumer-id <consumer-id> --limit 5

In the dashboard, the account's Access page should list no groups and no direct grants. Keep the SCIM log entry and the time of the last tool call as evidence.

Next steps