Get user role pairings

GET {{baseUrl}}/user_roles

This endpoint can retrieve user role pairings from Lifecycle or you can search for user role pairings using parameters

Request Params

KeyDatatypeRequiredDescription
query[limit]numberAllows for pagination and sorting.
query[offset]numberAllows for pagination and sorting.
query[order]stringAllows for pagination and sorting.
user_idstringThe ID of a user for filtering
role_idstringThe ID of a role for filtering
metadatabooleanReturns batching metadata in the response

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"user_roles":[{"id":"6440d437-4fb3-c918-0af5-924985e1bd48","uid":"consequat magna ullamcoExcepteur","user_id":"985bdb92-41d9-107a-b755-4740f6fd3184","role_id":"c0913da2-5711-7b93-e259-84a4aa080835"},{"id":"urn:uuid:81f1788d-a214-0266-a8fb-aef72cbbd356","uid":"ipsumut nulla iddolor voluptate ","user_id":"11dc16ce-d6c1-dcb9-6706-a3e273c9fbd9","role_id":"880915af-883c-2bbf-37e9-99a03ea465fd"}],"_metadata":{"limit":-81290486,"offset":83024010,"total":-87582055,"next":"/endpoint?limit=10\u0026offset=60","previous":"/endpoint?limit=10\u0026offset=40"}}