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

Parameters: disable_user
NameTypeDescription
user_id string required string User id from list_users.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "learnupon_write",
    "arguments": {
      "operation": "disable_user",
      "arguments": {
        "user_id": "51872"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "user_id": "51872",
    "login_enabled": false
  },
  "isError": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.