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
| Name | Type | Description |
|---|---|---|
| course_id string required | string | Course id from list_courses. |
| user_ids array required | array | User ids from list_users. |
tools/call
{
"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
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"course_id": "10233",
"unenrolled": 2
},
"isError": false
}