Find Roles
POST/groups-srv/graph/roles
This API call finds the roles using a graph filter to select the roles you want and limit the fields you would like to retrieve.
Filter Options:
object_ids: Array of role names to filter by (exact match). Maps to therolefield.object_owners: Array of role owners to filter by (exact match). Maps to theroleOwnerfield. Valid values: "client" or "admin".from_date: Filter roles created on or after this date (ISO 8601 format).to_date: Filter roles created on or before this date (ISO 8601 format).
Field Selection:
- Use the
fieldsparameter (space-separated string) to specify which fields to return - If
fieldsis not specified, all fields are returned - Available fields:
role,roleOwner,description,createdTime,updatedTime
Pagination:
- Use
fromandsizeparameters for pagination from: Starting index (default: 0)size: Number of results to return
Sorting:
- Use
sortfieldto specify the field to sort by (e.g., "role", "createdTime") - Use
descending: truefor descending order,falsefor ascending
Validation Rules:
object_ids: Optional array of strings, each must be a valid role nameobject_owners: Optional array, must contain "client" or "admin"frommust be a non-negative integersizemust be a positive integerfrom_dateandto_datemust be valid ISO 8601 date-time strings
Request
Responses
- 200
- 204
- 401
- 417
OK - Roles found matching the filter criteria
No Content - No roles found matching the filter criteria
Unauthorized - Authentication failed or missing required scope
Expectation Failed - Invalid filter syntax or malformed request