Delete account user
Scope: system:users.write https://api.alladdin.com/api/v2/account/users/{userId}
Removes a team member from the account.
Parameters
Path parameters
userId string required
User ID (24-character hex ObjectId)
Request
import requests
url = "https://api.alladdin.com/api/v2/account/users/5f43a0d1a8a1e5001f56c456"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.delete(url, headers=headers)
print(response.json())Responses
Success responses
204 User removed
Error responses
401 Invalid or missing API key application/json 403 Insufficient permissions application/json 404 Account or user not found application/json 422 Cannot remove the account owner or yourself 429 Rate limit exceeded application/json
