Get a list of user roles

Retrieve the user roles in the organization, optionally filtered by user or member. role is the stored role value: a system role name or, for custom roles, the custom role name. locations lists the locations a role is restricted to (empty means all locations). Some restricted users can still read data in all locations through a secondary viewer role, which this endpoint does not expose.

Required scopes: flex.user.userRoles.read

Path Params
string
required

organization slug

Query Params
string

Filter by user id. Supports single id (e.g. user=xxx) or multiple (e.g. user[$in]=id1,id2).

string

Filter by member id. Supports single id (e.g. member=xxx) or multiple (e.g. member[$in]=id1,id2).

string

Select fields to return

string
string
number
Response

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json