Skip to main content

revokeUserConnectedApps

Requires permission settings:api:update.

Admin: disconnect every MCP app from one user of your organization. Returns the number of tokens revoked.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation RevokeUserConnectedApps($userId: String!) {
revokeUserConnectedApps(userId: $userId)
}

Variables:

{
"userId": "string"
}

Response:

{
"data": {
"revokeUserConnectedApps": 0
}
}
revokeUserConnectedApps(
userId: String!
): Int!

Arguments​

revokeUserConnectedApps.userId ● String! non-null scalar​

The ID of the user whose connected apps are revoked.

Type​

Int scalar​

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.