Set user status

Activate or deactivate users.

MCP tool absorb_lms_write → set_user_status

write Confirm

Sets the listed users to Active or Inactive, like the Activate Users and Deactivate Users mass actions. An Inactive user cannot take part in or record new training, and their enrollment records, scores and history stay in reports. One call with the opposite status undoes it. It changes who can sign in, so it asks first. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: set_user_status
NameTypeDescription
user_ids array required array user_id values from list_users.
status enum required enum active or inactive.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "absorb_lms_write",
    "arguments": {
      "operation": "set_user_status",
      "arguments": {
        "user_ids": "user ids",
        "status": "active"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "updated": [
      {
        "user_id": "9b7e5d10-2c44-4f0b-8a31-6e2f9c4d7702",
        "name": "Omar Haddad",
        "status": "Inactive"
      }
    ]
  },
  "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.