List user role assignments
Changed onReturns the roles assigned to the specified user within the zone. Use cursor pagination via after/before; pass expand[]=total_count to include the matching row count. Pass filter[scope_id] (repeatable, max 100) to keep only the assignments scoped to those targets, and filter[scoped]=false to keep only unscoped assignments (the ones applying to the zone itself), so a known set of targets resolves in a fixed number of requests.
Request
- Base URLhttps://docs.keycard.ai (the document declares no server; this is the origin it was published from)
- URLhttps://docs.keycard.ai/zones/{zoneId}/users/{userId}/roles
- Auth
- HTTP bearer
- or OAuth 2Client credentialsToken URL: /service-account-token
Path parameters
Zone ID
User ID
Query parameters
Cursor for forward pagination
Cursor for backward pagination
Maximum number of items to return
false keeps only unscoped assignments (those applying to the zone itself, e.g. an org role); true keeps only scoped ones. Omit to list both.
Response
Default Response
Changes
- info
added the new optional
queryrequest parameterfilter[scope_id] - info
added the new optional
queryrequest parameterfilter[scoped]
- info
- info
added the non-success response with the status
- info
the
//response's property pattern^[a-z0-9]+(?:[-_][a-z0-9]+)*$was added for the status - info
added the required property
//to the response with the status
- info