Update account user role
Scope: system:users.write https://api.alladdin.com/api/v2/account/users/{userId}
Updates the role of an account team member.
Parameters
Path parameters
userId string required
User ID (24-character hex ObjectId)
Request body
object role string required
Role to assign to the user
Request
import requests
url = "https://api.alladdin.com/api/v2/account/users/5f43a0d1a8a1e5001f56c456"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
payload = {
"role": "admin"
}
response = requests.put(url, headers=headers, json=payload)
print(response.json())Responses
Success responses
204 User role updated
Error responses
400 Bad request application/json 401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Account or user not found application/json 422 Cannot edit the role of the account owner 429 Rate limit exceeded application/json
