get_users_user_group
Retrieve paginated users of a user group, newest first, for membership lookups and reporting.
Instructions
๐ข READ-ONLY ยท GET /v2/user_groups/{id}/users
Get users of a user group. Retrieves all the users who are members of the user group specified by the provided group id. The users are in sorted order, with the most recently created user appearing first, and the list is paginated, with a default limit of 20 users per page.
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.
Parameters: results are paged โ walk them with page.
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 User groups tools: add_user_user_group, remove_user_user_group, deletes_user_group, get_user_group, update_user_group.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Unique identifier of the user group | |
| page | No | Filter by the page number. In case page number is higher than the maximum one, the results of last page will be returned |