Unenroll user
Remove one user's enrollment in one course.
MCP tool absorb_lms_write → unenroll_user
write Confirm
Removes the enrollment through the Un-enroll action of the Course Enrollments report. Read the enrollment with list_user_enrollments first. Completions that already happened stay on the transcript. The learner can no longer open the course. By default you confirm each call; you can switch that off for this tool.
Parameters
| Name | Type | Description |
|---|---|---|
| user_id string required | string | User ID from list_users. |
| course_id string required | string | Course ID from list_courses. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "absorb_lms_write",
"arguments": {
"operation": "unenroll_user",
"arguments": {
"user_id": "user_8c41d2",
"course_id": "course_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"unenrolled": {
"user_id": "9b7e5d10-2c44-4f0b-8a31-6e2f9c4d7702",
"name": "Omar Haddad",
"course": "Warehouse Safety Basics"
}
},
"isError": false
}