get_user_roles
Retrieve all user roles from a LearnWorlds school, filtered by ID or access level for targeted access control.
Instructions
🟢 READ-ONLY · User roles · GET /v2/user-roles
Get all user roles
Returns a list with all the user roles of the school. The roles are in alphabetical ascending order according to their title.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role_id | No | Unique identifier of the user role; use this query parameter to return a specific user role. | |
| access_level | No | Filter roles by their access level. Values can be comma seperated to filter one or more access levels |