Get user
One user with groups, enrollments, user type and whether login is enabled.
MCP tool learnupon_read → get_user
read
Returns the profile of one user: name, email, user type, Login enabled, expiry date, the groups the user belongs to and every enrollment with its status. Use it before unenrolling or disabling someone, to see what will change. A pending user has no enrollments until they accept, unless you enrolled them by email.
Parameters
| Name | Type | Description |
|---|---|---|
| user_id string required | string | User id from list_users. |
tools/call
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "learnupon_read",
"arguments": {
"operation": "get_user",
"arguments": {
"user_id": "user_8c41d2"
}
}
}
} Example response
{
"content": [
{
"type": "text",
"text": "{ ... same JSON as structuredContent ... }"
}
],
"structuredContent": {
"user_id": "51872",
"name": "Maria Nowak",
"email": "maria.nowak@example.com",
"user_type": "learner",
"login_enabled": true,
"expires": null,
"groups": [
{
"group_id": "4821",
"name": "Onboarding"
}
],
"enrollments": [
{
"enrollment_id": "90417",
"course": "Data privacy basics",
"status": "In Progress"
},
{
"enrollment_id": "90102",
"course": "Welcome and Tools basics",
"status": "Completed"
}
]
},
"isError": false
}