new Users()
Methods
-
all()
-
query all users
Returns:
- Type
- Promise
-
create(user)
-
create user
Parameters:
Name Type Description userobject user infromation
Returns:
- Type
- Promise
-
current()
-
Gets currently authenticated user
Returns:
- Type
- Promise
-
project(projectId)
-
Get the users list of a project.
Parameters:
Name Type Description projectIdnumber | string The ID or URL-encoded path of the project
Returns:
- Type
- Promise
-
query(userId)
-
query single user info.
Parameters:
Name Type Description userIdnumber The ID of a user
Returns:
- Type
- Promise
-
remove(userId)
-
Deletes a user. Available only for administrators.
Parameters:
Name Type Description userIdnumber The ID of a user
Returns:
- Type
- Promise
-
update(userId, user)
-
update single user info
Parameters:
Name Type Description userIdnumber The ID of a user
userobject user infromation
Returns:
- Type
- Promise