get_user
Fetch a user's profile by ID or email from your LearnWorlds school for safe lookups and reporting. Read-only operation that creates, changes, or deletes nothing.
Instructions
🟢 READ-ONLY · GET /v2/users/{id}
Get a user. Returns the user specified by the provided user id.
Behavior: read-only lookup against the live school; creates, changes and deletes nothing. Auth (admin API token + Lw-Client id) is injected server-side, never by the model; calls are throttled to stay under LearnWorlds' 30-per-10s cap and retried on 429/5xx.
Returns: HTTP <status> followed by the LearnWorlds JSON response body. A non-2xx reply surfaces as a tool error with that status and the API error payload — 401 bad/expired token, 403 not permitted, 404 no such record, 422 rejected input.
Use when: safe to call speculatively for lookups and reporting. Not for changing anything — use the matching 🟡 write tool. Related Users tools: enroll_user_product, get_courses_enrollments_user, get_products_user, get_seat_offerings_that_user_is_member, get_user_groups_that_user_is_member.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | User Id or email (encoded string) | |
| include_suspended | No | Filter by include_suspended flag. The default value is false. |