Users > User team roles
The following endpoints update and retrieve data about user team roles of a user in a team. Check out the overview of user team roles and the associated permissions.
Gets team roles of the user with the specified userId. The response contains user's team role ID for all teams the user is part of. Get the mapping of the userRoleId and the user role name with the API call GET /users/roles.
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.
The ID of the user.
111Successful response
GET /api/v2/users/{userId}/user-team-roles HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"userTeamRoles": [
{
"usersRoleId": 3,
"userId": 13,
"teamId": 1,
"changeable": true
},
{
"usersRoleId": 1,
"userId": 13,
"teamId": 21,
"changeable": true
}
]
}Gets user role detail in the team with the specified teamId. Get the mapping of the userRoleId and the user role name with the API call GET /users/roles.
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.
The ID of the user.
111The ID of the team.
22Successful response
GET /api/v2/users/{userId}/user-team-roles/{teamId} HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"userTeamRole": {
"usersRoleId": 3,
"userId": 13,
"teamId": 1,
"changeable": true
}
}Updates the user role in the team with the specified teamId. Get the mapping of the userRoleId and the user role name with the API call GET /users/roles.
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.
The ID of the user.
111The ID of the team.
22The ID of the user role. Check the GET /users/roles API call for the available usersRoleId values.
Successful response
POST /api/v2/users/{userId}/user-team-roles/{teamId} HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"usersRoleId": 3
}Successful response
{
"userTeamRole": {
"usersRoleId": 3,
"userId": 13,
"teamId": 1,
"changeable": true
}
}Last updated

