Disable user
Turn off Login enabled for a user; data and enrollments stay.
MCP tool learnupon_write → disable_user
write Confirm
Sets Login enabled to off. The user cannot sign in, and the account keeps its data, enrollments and training history until an admin turns it on or deletes it. While disabled, the user is not enrolled on group courses. Managers can disable only users in their own groups. This tool never deletes an account. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| user_id string required | string | User id from list_users. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "learnupon_write",
"arguments": {
"operation": "disable_user",
"arguments": {
"user_id": "51872"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"user_id": "51872",
"login_enabled": false
},
"isError": false
}