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

Parameters: get_user
NameTypeDescription
user_id string required string User id from list_users.

tools/call

JSON-RPC

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "learnupon_read",
    "arguments": {
      "operation": "get_user",
      "arguments": {
        "user_id": "user_8c41d2"
      }
    }
  }
}

Example response

JSON

{
  "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
}

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.