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

# What happens to MCP access when an employee leaves the company
URL: https://metorial.com/docs/platform/guides/offboard-a-user

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**

* Admin access to Workforce and to your identity provider
* For the CLI steps, [install `metorial-admin` and sign in](https://metorial.com/docs/build/sandboxes#install-the-tools)

## What ends, and when

| Item                                                     | With SCIM                                                      | Without SCIM                           |
| -------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------- |
| Directory groups and roles in Metorial                   | Cleared when the SCIM request arrives                          | Unchanged                              |
| Access through groups, including groups assigned by hand | Revoked                                                        | Ends when you delete the profile       |
| Metorial sessions                                        | Revoked once every SSO identity of the person is deprovisioned | Signed out when you delete the profile |
| Integrations in already-connected AI clients             | Removed in the background                                      | Removed when access is removed         |
| The person's app connections and credentials             | Archived when the profile is deleted                           | Archived when the profile is deleted   |
| Accounts in the apps themselves                          | Not touched                                                    | Not touched                            |
| Past tool calls                                          | Kept in the logs                                               | Kept 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

### 1. 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.

### 2. 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

### 1. Disable the identity provider account

This stops new SSO sign-ins.

### 2. 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.

### 3. 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.

```bash
# Find the person
metorial-admin consumers list --email jo@example.com

# 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:

```bash
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

* [Set up SSO and SCIM](https://metorial.com/docs/platform/guides/sso-and-scim): connect a directory so offboarding is automatic
* [CI and scheduled jobs](https://metorial.com/docs/platform/guides/mcp-access-for-ci-and-scheduled-jobs): review service accounts, which are not tied to a person
* [SOC 2 and MCP](https://metorial.com/docs/platform/guides/soc-2-with-mcp): use the offboarding test as audit evidence