Get all roles in an Organization

GET https://{{base_url}}/v3/organizations/{{organization_uid}}/roles

The Get all roles in an organization call gives the details of all the roles that are set to users in an Organization.

To use the API Request, you will need to authenticate yourself either with a Management Token (highly recommended) or an Authtoken. 
Read more about it in Authentication.


For more information, refer to the Get all roles in an Organization API Reference document

Request Params

KeyDatatypeRequiredDescription
limitstringThe ‘limit’ parameter will return a specific number of Organization roles in the output. Example, if there are 10 organization roles and you wish to fetch only the first 2, you need to specify '2' as the value in this parameter.
skipstringThe ‘skip’ parameter will skip a specific number of Organization roles in the output. For example, if there are 12 organization roles and you want to skip the first 2 to get only the last 10 in the response body, you need to specify ‘2’ here.
ascstringThe ‘asc’ parameter allows you to sort the list of organization roles in an ascending order on the basis of a parameter.
descstringThe ‘desc’ parameter allows you to sort the list of organization roles in a descending order on the basis of a parameter.
include_countbooleanThe ‘include_count’ parameter returns the total number of roles in an organization. For example: If you want to know the total number of roles in an organization, you need to mention ‘true’.
include_stack_rolesbooleanThe ‘include_stack_roles’ parameter, when set to ‘true’, includes the details of stack-level roles in the Response body.

HEADERS

KeyDatatypeRequiredDescription
authtokenstringEnter the authtoken of the user.
Content-Typestring