@ThreadSafe public interface UsersApi
| Modifier and Type | Method and Description |
|---|---|
User |
cloneUser(String clonedName,
String userID)
Clone an user.
|
User |
cloneUser(String clonedName,
User user)
Clone an user.
|
User |
createUser(String name)
Creates a new user and sets
User.getId() with the new identifier. |
User |
createUser(User user)
Creates a new user and sets
User.getId() with the new identifier. |
void |
deleteUser(String userID)
Delete an user.
|
void |
deleteUser(User user)
Delete an user.
|
User |
findUserByID(String userID)
Retrieve an user.
|
List<User> |
findUsers()
List all users.
|
User |
me()
Returns currently authenticated user.
|
void |
meUpdatePassword(String oldPassword,
String newPassword)
Update the password to a currently authenticated user.
|
User |
updateUser(User user)
Update an user.
|
void |
updateUserPassword(String userID,
String oldPassword,
String newPassword)
Update password to an user.
|
void |
updateUserPassword(User user,
String oldPassword,
String newPassword)
Update password to an user.
|
@Nonnull User createUser(@Nonnull User user)
User.getId() with the new identifier.user - the user to create@Nonnull User createUser(@Nonnull String name)
User.getId() with the new identifier.name - name of the user@Nonnull User updateUser(@Nonnull User user)
user - user update to applyvoid updateUserPassword(@Nonnull User user, @Nonnull String oldPassword, @Nonnull String newPassword)
user - user to update passwordoldPassword - old passwordnewPassword - new passwordvoid updateUserPassword(@Nonnull String userID, @Nonnull String oldPassword, @Nonnull String newPassword)
userID - ID of user to update passwordoldPassword - old passwordnewPassword - new passwordvoid deleteUser(@Nonnull String userID)
userID - ID of user to delete@Nonnull User cloneUser(@Nonnull String clonedName, @Nonnull String userID)
clonedName - name of cloned useruserID - ID of user to clone@Nonnull User cloneUser(@Nonnull String clonedName, @Nonnull User user)
clonedName - name of cloned useruser - user to clonevoid meUpdatePassword(@Nonnull String oldPassword, @Nonnull String newPassword)
oldPassword - old passwordnewPassword - new password@Nonnull User findUserByID(@Nonnull String userID)
userID - ID of user to getCopyright © 2018–2021 InfluxData, Inc.. All rights reserved.