Deactivate users

Deactivate users now or on a date. Their history stays in reports.

MCP tool ispring_write → deactivate_users

write Confirm

Sets users to Inactive, now or on deactivate_on. Inactive users cannot sign in, get notifications, open their courses or be assigned new ones, and they stop counting as active users. Their statistics stay for reports, and an administrator can reactivate them later. The Account Owner cannot be deactivated, and Department Administrators can deactivate only users in their departments. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: deactivate_users
NameTypeDescription
user_ids string[] required string[] Users from list_users.
deactivate_on date date Schedule the deactivation for this date. Default: now.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "ispring_write",
    "arguments": {
      "operation": "deactivate_users",
      "arguments": {
        "user_ids": [
          "u_92b7c1",
          "u_92b7c2"
        ]
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "deactivated": 2,
    "scheduled_for": null,
    "users": [
      {
        "user_id": "u_92b7c1",
        "name": "Maria Silva",
        "status": "inactive"
      },
      {
        "user_id": "u_92b7c2",
        "name": "Jake Ortiz",
        "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.