public class UsersApi extends Object
Constructor and Description |
---|
UsersApi() |
UsersApi(ApiClient apiClient) |
Modifier and Type | Method and Description |
---|---|
void |
changePassword(PasswordChangeRequest body)
Change user password
|
ConfirmEmailResponse |
confirmEmail(String userId,
ConfirmEmailRequest body)
Confirms user's email address
|
User |
createUser(SignupRequest body)
Create a new user
Signs up a new user.
|
void |
deleteUser(String userId)
Removed user's association with an account
|
void |
deleteUserAccount()
Completely delete a user profile from system
Completely deletes the currently logged in user from the system.
|
void |
forgotPassword(ForgotPasswordRequest body)
Initiate password reset sequence for a user
|
ApiClient |
getApiClient() |
User |
getUser(String userId)
Get a specific user
|
UserAccountMap |
getUserAccount()
Get account information for the user
Obtain the current user's account information.
|
List<User> |
getUsers(String groupId)
Get all users
|
List<User> |
getUsers(String groupId,
String sort,
String start,
Integer limit,
Integer offset)
Get all users
|
User |
inviteUser(UserRequest body)
Invite a user
Invite an existing user or new user to join an existing account.
|
void |
processInvitations(ProcessInviteRequest body)
Process a user's pending account invitations
Process a user's pending invitations.
|
void |
resendConfirmEmail(String userId)
Resend email with link to confirm user's email address
|
void |
resendInvitation(String userId)
Resend invite to the user to join a specific account
|
void |
resetPassword(String userId,
PasswordResetRequest body)
Reset a user's password
Resetting a user's password.
|
void |
setApiClient(ApiClient apiClient) |
User |
updateUser(String userId,
UserRequest body)
Update user
Change a user's properties.
|
ValidateTokenResponse |
validatePasswordResetToken(String userId,
ValidateTokenRequest body)
Validates password reset token for the user
|
public UsersApi()
public UsersApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public void changePassword(PasswordChangeRequest body) throws ApiException
body
- Password change request (required)ApiException
- if fails to make API callpublic ConfirmEmailResponse confirmEmail(String userId, ConfirmEmailRequest body) throws ApiException
userId
- User Identifier (required)body
- Validate user's email (required)ApiException
- if fails to make API callpublic User createUser(SignupRequest body) throws ApiException
body
- Email address of user (required)ApiException
- if fails to make API callpublic void deleteUser(String userId) throws ApiException
userId
- User Identifier (required)ApiException
- if fails to make API callpublic void deleteUserAccount() throws ApiException
ApiException
- if fails to make API callpublic void forgotPassword(ForgotPasswordRequest body) throws ApiException
body
- Initiate forgot password sequrence (required)ApiException
- if fails to make API callpublic User getUser(String userId) throws ApiException
userId
- User Identifier (required)ApiException
- if fails to make API callpublic UserAccountMap getUserAccount() throws ApiException
ApiException
- if fails to make API callpublic List<User> getUsers(String groupId, String sort, String start, Integer limit, Integer offset) throws ApiException
groupId
- Only retrieve users in the specified group. (optional)sort
- This specifies the property (`user_id` only, for now) and order (ascending or descending) with which to sort the users. By default, users are sorted by `user_id` in ascending order. The syntax is \"<property>:[asc|desc]\" (e.g. \"user_id:desc\") or just \"<property>\" (ascending order by default). (optional)start
- If provided, this must be a value of the property specified in `sort`. Returned users will begin just above or just below this value (for asc/desc order resp.). (optional)limit
- Maximum number of users to return. If not provided, the limit is 100. (optional)offset
- Number of users past `start` to skip. (optional)ApiException
- if fails to make API callpublic List<User> getUsers(String groupId) throws ApiException
groupId
- Only retrieve users in the specified group. (optional)ApiException
- if fails to make API callpublic User inviteUser(UserRequest body) throws ApiException
body
- Name of user (required)ApiException
- if fails to make API callpublic void processInvitations(ProcessInviteRequest body) throws ApiException
body
- Process account invitation (both accepts and rejects) (required)ApiException
- if fails to make API callpublic void resendConfirmEmail(String userId) throws ApiException
userId
- User Identifier (required)ApiException
- if fails to make API callpublic void resendInvitation(String userId) throws ApiException
userId
- User Identifier (required)ApiException
- if fails to make API callpublic void resetPassword(String userId, PasswordResetRequest body) throws ApiException
userId
- User Identifier (required)body
- Reset password (required)ApiException
- if fails to make API callpublic User updateUser(String userId, UserRequest body) throws ApiException
userId
- User Identifier (required)body
- Name of user (required)ApiException
- if fails to make API callpublic ValidateTokenResponse validatePasswordResetToken(String userId, ValidateTokenRequest body) throws ApiException
userId
- User Identifier (required)body
- Validate token (required)ApiException
- if fails to make API callCopyright © 2017-2023 Fortanix Inc. All Rights Reserved