Users

List users

get
Responses
chevron-right
200

OK

application/json
get
/users

Add User to Current Project

post

The /users route will add a new user to an existing project. If the create flag is set, and the user doesn't already exist, it will create the user and add a new login in addition to the the project binding.

Body

Body of the request to add a user to an account

createbooleanOptional

Create should be true if the user should be created if they do not exist

emailstringOptional

Email address of the user to add

namestringOptional

Name of the user to add

Responses
chevron-right
200

OK

application/json
post
/users

Get user by id

get
Path parameters
idstringRequired

the id of the user

Responses
chevron-right
200

OK

application/json
get
/users/{id}

Remove User from Current Project

delete
Path parameters
idstringRequired

the id of the user to remove from the current project

Responses
delete
/users/{id}

No content

Demote a user from organization admin

post
Path parameters
idstringRequired

the id of the user

Responses
chevron-right
200

OK

No content

post
/users/{id}/demote-org-admin

No content

Set a user's project role

put

Sets the role of a user within the current project

Path parameters
idstringRequired

the id of the user

Body

Body of the request to set a user's project role

roleall ofOptional

Role is the new project role for the user (admin, user, or viewer)

string · enumOptionalPossible values:
Responses
chevron-right
200

OK

application/json
put
/users/{id}/project-role

Promote a user to organization admin

post
Path parameters
idstringRequired

the id of the user

Responses
chevron-right
200

OK

No content

post
/users/{id}/promote-org-admin

No content

Remove a user from the current organization

post

Removes the user from all organization projects and deletes the organization binding

Path parameters
idstringRequired

the id of the user

Responses
chevron-right
200

OK

No content

post
/users/{id}/remove-from-org

No content

Last updated

Was this helpful?