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: Token your-api-token
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: Token your-api-token
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. Organizations limited to a single team cannot assign team roles; such requests are rejected with SC402. Removing a user's role (omitting usersRoleId or sending null) remains available on those plans.
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. Send null (or omit) to remove the user's role / remove them from the team.
Successful response
Payment required - the organization is limited to a single team and cannot assign team roles. Upgrade to a multi-team plan.
POST /api/v2/users/{userId}/user-team-roles/{teamId} HTTP/1.1
Host: eu1.make.com
Authorization: Token your-api-token
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"usersRoleId": 3
}{
"userTeamRole": {
"usersRoleId": 3,
"userId": 13,
"teamId": 1,
"changeable": true
}
}Last updated

