logout_user
Terminate all active sessions for a specified user in the mcp-keycloak server. Requires the user ID and optionally a target realm to complete the logout process effectively.
Instructions
Logout all sessions for a user.
Args:
user_id: The user's ID
realm: Target realm (uses default if not specified)
Returns:
Status message
Input Schema
Name | Required | Description | Default |
---|---|---|---|
realm | No | ||
user_id | Yes |
Input Schema (JSON Schema)
{
"properties": {
"realm": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"title": "Realm"
},
"user_id": {
"title": "User Id",
"type": "string"
}
},
"required": [
"user_id"
],
"title": "logout_userArguments",
"type": "object"
}