Users > User organization roles
The following endpoints update and retrieve data about user organization roles of a user in an organization. Check out the overview of user organization roles and the associated permissions.
Gets list of all users and their roles in the organization with the specified organizationId. Get all user role IDs with the API call GET /users/roles.
The ID of the user.
111Specifies 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":["userId","organizationId","usersRoleId","invitation","organizationTeamsCount","joinedTeamsCount"]}Successful response
GET /api/v2/users/{userId}/user-organization-roles HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"userOrganizationRoles": [
{
"userId": 1,
"organizationId": 1,
"usersRoleId": 11,
"invitation": null
},
{
"userId": 1,
"organizationId": 2,
"usersRoleId": 11,
"invitation": null
}
]
}Gets information about user role in an organization with the specified userId and organizationId. Get all user role IDs with the API call GET /users/roles.
The ID of the user
254The ID of the organization
11Specifies 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":["userId","organizationId","userRoleId","invitation","organizationTeamsCount","joinedTeamsCount"]}Successful response
GET /api/v2/users/{userId}/user-organization-roles/{organizationId} HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"userOrganizationRole": {
"userId": 254,
"organizationId": 11,
"usersRoleId": 11,
"invitation": null
}
}Updates the specified user role in the organization. Only organization owners and admins can change the user organization roles. Refer to the Make Help center for a breakdown of the user role permissions.
Specify the ID of the new role for the user in the request body. Get all available user role IDs and the corresponding user role names with the API call GET /users/roles.
You cannot change the organization "Owner" with this endpoint. Use the API call to transfer organization ownership instead.
If you send an empty request body, the user with the specified userId will be removed from the organization.
The ID of the user.
5The ID of the organization.
22Specifies 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":["userId","organizationId","usersRoleId","invitation","organizationTeamsCount","joinedTeamsCount"]}Use this parameter when you are removing a user from an organization. Set this parameter to true is you want to delete the user's connections from the organization with the parameter deleteConnections.
{"value":true}Set this parameter to true if you are removing a user from an organization to delete also the user's connections. If you set this parameter to false, the API call won't delete the user's connections.
{"value":true}The 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-organization-roles/{organizationId} HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 18
{
"usersRoleId": 12
}Successful response
{
"userOrganizationRole": {
"userId": 5,
"organizationId": 22,
"usersRoleId": 12,
"invitation": null
}
}Transfer organization ownership
Transfer organization ownership to the user with the specified userId. Only organization owner can transfer their ownership to another user.
The ID of the user.
111The ID of the organization.
11Successful response
POST /api/v2/users/{userId}/user-organization-roles/{organizationId}/transfer HTTP/1.1
Host: eu1.make.com
Authorization: YOUR_API_KEY
Accept: */*
Successful response
{
"userOrganizationRoles": [
{
"userId": 111,
"organizationId": 11,
"usersRoleId": 11,
"invitation": null
},
{
"userId": 1,
"organizationId": 11,
"usersRoleId": 12,
"invitation": null
}
]
}Last updated

