Unenroll users

Remove learners from one course.

MCP tool learnupon_write → unenroll_users

write Confirm

Unenrolls the users from one course, which removes their access to it. A manager needs the permission to unenroll users, which is off by default. Completed courses stay in the training record when you only unenroll from open ones. By default you confirm each call; you can switch that off for this tool.

Parameters

Parameters: unenroll_users
NameTypeDescription
course_id string required string Course id from list_courses.
user_ids array required array User ids from list_users.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "learnupon_write",
    "arguments": {
      "operation": "unenroll_users",
      "arguments": {
        "course_id": "course_8c41d2",
        "user_ids": "user ids"
      }
    }
  }
}

Example response

JSON

{
  "content": [
    {
      "type": "text",
      "text": "{ ... same JSON as structuredContent ... }"
    }
  ],
  "structuredContent": {
    "course_id": "10233",
    "unenrolled": 2
  },
  "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.