list_user_roles
Retrieve user roles for an organization unit. Supports pagination and filtering. Use all: true to fetch all roles in one call.
Instructions
Retrieve a list of user roles for a given organization unit. Returns one page by default — set all: true to auto-paginate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| orgUnitId | Yes | The organization unit ID | |
| pageNumber | No | Page number (starts at 1) | |
| pageSize | No | Number of items per page (max 200) | |
| select | No | Filter expression (FIQL/RSQL predicate) — despite the "select" name, this filters rows, it does NOT pick fields. Syntax: `field==value`, join predicates with `;` for AND. Example: `soId==50` returns only the SO with that ID. Not all fields are queryable; unsupported ones error with "Field not found: X". | |
| sortBy | No | Field to sort results by | |
| sortOrder | No | Sort order: ASC, asc, ascending, natural, desc, descending, reverse | |
| all | No | Auto-paginate: fetch every page and return the combined list. Ignores pageNumber/pageSize. Use for complete results; omit to return a single page (cheaper, safer for large environments). |