0 0 Share PDF

Promote a member of an organization to Organization Admin with the UCP API

Article ID: KB000417


Sometimes it may be necessary to promote users programmatically via the command line.


The following API call promotes a member of a team/organization to an Admin user:

curl -kL -H "Content-Type: application/json" --user <admin-username> -X PUT https://localhost:443/enzi/v0/accounts/<team>/members/<user_to_promote> -d '{"isAdmin":true}'

Note: --user ${admin} must refer to an existing user with Administrator privileges

For example, to promote the user alice:

curl -vvvkL -H "Content-Type: application/json" --user admin -X PUT https://localhost:443/enzi/v0/accounts/teamxps/members/<^alice -d '{"isAdmin":true}'

Note: The above example uses curl's -v flag for extra verbosity.