Classes
Methods
# async activate(userId) → {Promise.<void>}
Activates the user with the specified id. The user is then allowed to sign in again and will be notified via email.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the user. |
Promise.<void>
# contactInfo(userId) → {UserContactInfos}
Returns the UserContactInfos Endpoint with the specified project Id.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the user. |
# async create(userCreateModel) → {Promise.<User>}
Creates a new user. The user's key is assigned automatically and can be changed later.
Parameters:
Name | Type | Description |
---|---|---|
userCreateModel |
UserCreateModel
|
The model to create a user. |
Promise.<User>
# async deactivate(userId) → {Promise.<void>}
Deactivates the user with the specified id. A deactivated user can no longer sign in. It is only possible if the user is not the last admin user.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the user. |
Promise.<void>
# async delete(userId) → {Promise.<void>}
Deletes the user with the specified id.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the user. |
Promise.<void>
# entityTags(userId)
Returns the EntityTags Endpoint with the specified user Id and name.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the users. |
- Deprecated:
- Yes
# async get(userId) → {Promise.<User>}
Returns the user with the specified id.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the user. |
Promise.<User>
# images(usersId) → {EntityImages}
Returns the EntityImages Endpoint with the specified user Id.
Parameters:
Name | Type | Description |
---|---|---|
usersId |
String
|
The id of the user. |
# async isKeyValid() → {Promise.<String>}
Checks whether the specified user key is valid and unique.
Promise.<String>
# async lastTimeEntries(userId) → {Promise.<TimeEntry>}
The last time entry is always the last one that was started. Time entries which are started in the future are ignored. If a time entry does not have a start time, 12.00 am is automatically assumed as the start time for comparison with other time entries from the same day.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the user. Only if /users, not /me. |
Promise.<TimeEntry>
# async list(optionsopt, showArchivedopt) → {Promise.<Array.<User>>}
Returns all users with their details like status, contact info and more. Returns all users if the user has read permissions on the feature user-master-data, otherwise returns only his own user. Archived users are excluded by default. You can include them by setting the 'showArchived' query parameter. If the permissions have UserTeamsData Feature, the filter for teams is applied. Beware that this will also include API users in the response.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
options |
ListOptions
|
<optional> |
Pagination and filtering options | |
showArchived |
Boolean
|
<optional> |
false | Include archived users in the results. Not required. False by default. |
Promise.<Array.<User>>
# async setArchived(userId, isArchived)
Archives or unarchives the user with the specified id. Archived objects can not be used any longer but still exist for being referenced by other entities.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the user which will be changed. |
isArchived |
Boolean
|
Flags the entity as archived. |
# async setkey(userId) → {Promise.<String>}
Sets the user key of the user with the specified id.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the user. |
Promise.<String>
# tags(userId)
Returns the EntityTags Endpoint with the specified user Id and name.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the users. |
# timeTrackings(userId) → {TimeTrackings}
Returns the TimeTrackings Endpoint with the specified user Id.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the user. |
# async update(userId, userUpdateModel) → {Promise.<User>}
Updates the user with the specified id.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the user. |
userUpdateModel |
UserUpdateModel
|
The model to update a user. |
Promise.<User>
# userOtherPrivateTasksSubtasks(userId) → {UserOtherPrivateTasksSubtasks}
Returns the UserOtherPrivateTasksSubtasks Endpoint with the specified user Id.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the user. |
# userPrivateTasksSubtasks(userId) → {UserPrivateTasksSubtasks}
Returns the UserPrivateTasksSubtasks Endpoint with the specified user Id.
Parameters:
Name | Type | Description |
---|---|---|
userId |
String
|
The id of the user. |