List roles

GET {{baseUrl}}/roles?aid=1234

Retrieves a list of defined roles visible to the current user.

Request Params

KeyDatatypeRequiredDescription
aidnumberA unique identifier associated with your account group. You can retrieve your AccountGroupId from the /account-groups endpoint. Note that you must be assigned to the target account group. Specifying this parameter without being assigned to the target account group will result in an error response.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"roles":[{"name":"Organization Admin","roleId":"35","isBuiltin":false,"hasManagementPermissions":false},{"name":"Organization Admin","roleId":"35","isBuiltin":true,"hasManagementPermissions":true}],"_links":{"self":{"href":"https://api.thousandeyes.com/v7/link/to/resource/id","templated":false,"type":"voluptate in nulla adipisicing exercitation","deprecation":"mollit fugiat ut irure sed","name":"proident ut","profile":"exercitation mollit ipsum","title":"voluptate quis non esse labore","hreflang":"est minim aliqua tempor"}}}