public interface UsersApi
| Modifier and Type | Method and Description |
|---|---|
User |
create(UserCreationInfo userCreationInfo)
Create a new User.
|
void |
delete(Reference<User> userReference)
Delete a user.
|
User |
get(Reference<User> userReference)
Retrieve an existing user
|
User |
getSelf()
Retrieve the currently authenticated user
|
default List<User> |
list()
Returns a list of your users.
|
List<User> |
list(Boolean isActive,
Instant updatedSince)
Return a list of users, filtered by activity and update date, newest user
first.
|
User |
update(Reference<User> user,
User toChange)
Change an existing user.
|
default List<User> list()
List<User> list(Boolean isActive, Instant updatedSince)
isActive - if true, return only active users. Set to null to disable
filteringupdatedSince - return only users that have been updated at least 1 second after
updatedSince. Set to null to disable filtering.User create(UserCreationInfo userCreationInfo)
userCreationInfo - a user creation object with the wanted properties. Null fields
will get a default value according to the Harvest docsUser getSelf()
User get(Reference<User> userReference)
userReference - a reference to an existing UserUser update(Reference<User> user, User toChange)
user - a reference to an existing UsertoChange - A user object with the properties to be changed. Null fields will
be left as is.