Users > Roles
The following endpoint retrieves the mapping of a userRoleId parameter and user role name.
Gets list of all existing user role names and IDs. Set the user roles in an organization with the POST /users/{userId}/user-organization-roles/{organizationId} API call. Use the POST /users/{userId}/user-team-roles/{teamId} API call to set user roles in a team.
Authorize the API call with your API token in the Authorization header with the value: Token your-api-token.
If you don't have an API token yet, please refer to the "Authentication" section to learn how to create one.
Specifies columns that are returned in the response. Use the cols[] parameter for every column that you want to return in the response. For example GET /endpoint?cols[]=key1&cols[]=key2 to get both key1 and key2 columns in the response.
{"value":["id","name","subsidiary","category","permissions"]}Set this parameter to organization or team to get user roles in an organization or in a team.
teamPossible values: Successful response
GET /api/v2/users/roles HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"usersRoles": [
{
"id": 1,
"name": "Team Admin"
},
{
"id": 3,
"name": "Team Member"
},
{
"id": 4,
"name": "Team Monitoring"
},
{
"id": 6,
"name": "Team Operator"
},
{
"id": 11,
"name": "Owner"
},
{
"id": 12,
"name": "Admin"
},
{
"id": 13,
"name": "Member"
},
{
"id": 14,
"name": "Accountant"
}
]
}Last updated

