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
.
The ID of the user.
111
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
.
The ID of the user.
111
The ID of the team.
22
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
.
The ID of the user.
111
The ID of the team.
22
The ID of the user role. Check the GET /users/roles
API call for the available usersRoleId
values.
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
}
}