@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-07-14T17:07:26.321-05:00[America/Chicago]") public class UserApi extends Object
| Modifier and Type | Method and Description | 
|---|---|
| UserActivationToken | activateUser(String userId,
            Boolean sendEmail)Activate a User
 Activates a user. | 
| UserActivationToken | activateUser(String userId,
            Boolean sendEmail,
            Map<String,String> additionalHeaders)Activate a User
 Activates a user. | 
| UserCredentials | changePassword(String userId,
              ChangePasswordRequest changePasswordRequest,
              Boolean strict)Change Password
 Changes a user's password by validating the user's current password. | 
| UserCredentials | changePassword(String userId,
              ChangePasswordRequest changePasswordRequest,
              Boolean strict,
              Map<String,String> additionalHeaders)Change Password
 Changes a user's password by validating the user's current password. | 
| UserCredentials | changeRecoveryQuestion(String userId,
                      UserCredentials userCredentials)Change Recovery Question
 Changes a user's recovery question & answer credential by validating the user's current password. | 
| UserCredentials | changeRecoveryQuestion(String userId,
                      UserCredentials userCredentials,
                      Map<String,String> additionalHeaders)Change Recovery Question
 Changes a user's recovery question & answer credential by validating the user's current password. | 
| User | createUser(CreateUserRequest body,
          Boolean activate,
          Boolean provider,
          UserNextLogin nextLogin)Create a User
 Creates a new user in your Okta organization with or without credentials<br> > **Legal Disclaimer**<br> After a user is added to the Okta directory, they receive an activation email. | 
| User | createUser(CreateUserRequest body,
          Boolean activate,
          Boolean provider,
          UserNextLogin nextLogin,
          Map<String,String> additionalHeaders)Create a User
 Creates a new user in your Okta organization with or without credentials<br> > **Legal Disclaimer**<br> After a user is added to the Okta directory, they receive an activation email. | 
| void | deactivateUser(String userId,
              Boolean sendEmail)Deactivate a User
 Deactivates a user. | 
| void | deactivateUser(String userId,
              Boolean sendEmail,
              Map<String,String> additionalHeaders)Deactivate a User
 Deactivates a user. | 
| void | deleteLinkedObjectForUser(String userId,
                         String relationshipName)Delete a Linked Object
 Deletes linked objects for a user, relationshipName can be ONLY a primary relationship name | 
| void | deleteLinkedObjectForUser(String userId,
                         String relationshipName,
                         Map<String,String> additionalHeaders)Delete a Linked Object
 Deletes linked objects for a user, relationshipName can be ONLY a primary relationship name | 
| void | deleteUser(String userId,
          Boolean sendEmail)Delete a User
 Deletes a user permanently. | 
| void | deleteUser(String userId,
          Boolean sendEmail,
          Map<String,String> additionalHeaders)Delete a User
 Deletes a user permanently. | 
| User | expirePassword(String userId)Expire Password
 Expires a user's password and transitions the user to the status of `PASSWORD_EXPIRED` so that the user is required to change their password at their next login | 
| User | expirePassword(String userId,
              Map<String,String> additionalHeaders)Expire Password
 Expires a user's password and transitions the user to the status of `PASSWORD_EXPIRED` so that the user is required to change their password at their next login | 
| TempPassword | expirePasswordAndGetTemporaryPassword(String userId,
                                     Boolean revokeSessions)Expire Password and Set Temporary Password
 Expires a user's password and transitions the user to the status of `PASSWORD_EXPIRED` so that the user is required to change their password at their next login, and also sets the user's password to a temporary password returned in the response | 
| TempPassword | expirePasswordAndGetTemporaryPassword(String userId,
                                     Boolean revokeSessions,
                                     Map<String,String> additionalHeaders)Expire Password and Set Temporary Password
 Expires a user's password and transitions the user to the status of `PASSWORD_EXPIRED` so that the user is required to change their password at their next login, and also sets the user's password to a temporary password returned in the response | 
| ForgotPasswordResponse | forgotPassword(String userId,
              Boolean sendEmail)Initiate Forgot Password
 Initiates the forgot password flow. | 
| ForgotPasswordResponse | forgotPassword(String userId,
              Boolean sendEmail,
              Map<String,String> additionalHeaders)Initiate Forgot Password
 Initiates the forgot password flow. | 
| UserCredentials | forgotPasswordSetNewPassword(String userId,
                            UserCredentials userCredentials,
                            Boolean sendEmail)Reset Password with Recovery Question
 Resets the user's password to the specified password if the provided answer to the recovery question is correct | 
| UserCredentials | forgotPasswordSetNewPassword(String userId,
                            UserCredentials userCredentials,
                            Boolean sendEmail,
                            Map<String,String> additionalHeaders)Reset Password with Recovery Question
 Resets the user's password to the specified password if the provided answer to the recovery question is correct | 
| ResetPasswordToken | generateResetPasswordToken(String userId,
                          Boolean sendEmail,
                          Boolean revokeSessions)Generate a Reset Password Token
 Generates a one-time token (OTT) that can be used to reset a user's password. | 
| ResetPasswordToken | generateResetPasswordToken(String userId,
                          Boolean sendEmail,
                          Boolean revokeSessions,
                          Map<String,String> additionalHeaders)Generate a Reset Password Token
 Generates a one-time token (OTT) that can be used to reset a user's password. | 
| ApiClient | getApiClient() | 
| protected static com.fasterxml.jackson.databind.ObjectMapper | getObjectMapper() | 
| OAuth2RefreshToken | getRefreshTokenForUserAndClient(String userId,
                               String clientId,
                               String tokenId,
                               String expand,
                               Integer limit,
                               String after)Retrieve a Refresh Token for a Client
 Retrieves a refresh token issued for the specified User and Client | 
| OAuth2RefreshToken | getRefreshTokenForUserAndClient(String userId,
                               String clientId,
                               String tokenId,
                               String expand,
                               Integer limit,
                               String after,
                               Map<String,String> additionalHeaders)Retrieve a Refresh Token for a Client
 Retrieves a refresh token issued for the specified User and Client | 
| User | getUser(String userId)Retrieve a User
 Retrieves a user from your Okta organization | 
| User | getUser(String userId,
       Map<String,String> additionalHeaders)Retrieve a User
 Retrieves a user from your Okta organization | 
| OAuth2ScopeConsentGrant | getUserGrant(String userId,
            String grantId,
            String expand)Retrieve a User Grant
 Retrieves a grant for the specified user | 
| OAuth2ScopeConsentGrant | getUserGrant(String userId,
            String grantId,
            String expand,
            Map<String,String> additionalHeaders)Retrieve a User Grant
 Retrieves a grant for the specified user | 
| List<AppLink> | listAppLinks(String userId)List all Assigned Application Links
 Lists all appLinks for all direct or indirect (via group membership) assigned applications | 
| List<AppLink> | listAppLinks(String userId,
            Map<String,String> additionalHeaders)List all Assigned Application Links
 Lists all appLinks for all direct or indirect (via group membership) assigned applications | 
| List<OAuth2ScopeConsentGrant> | listGrantsForUserAndClient(String userId,
                          String clientId,
                          String expand,
                          String after,
                          Integer limit)List all Grants for a Client
 Lists all grants for a specified user and client | 
| List<OAuth2ScopeConsentGrant> | listGrantsForUserAndClient(String userId,
                          String clientId,
                          String expand,
                          String after,
                          Integer limit,
                          Map<String,String> additionalHeaders)List all Grants for a Client
 Lists all grants for a specified user and client | 
| List<Object> | listLinkedObjectsForUser(String userId,
                        String relationshipName,
                        String after,
                        Integer limit)List all Linked Objects
 Lists all linked objects for a user, relationshipName can be a primary or associated relationship name | 
| List<Object> | listLinkedObjectsForUser(String userId,
                        String relationshipName,
                        String after,
                        Integer limit,
                        Map<String,String> additionalHeaders)List all Linked Objects
 Lists all linked objects for a user, relationshipName can be a primary or associated relationship name | 
| List<OAuth2RefreshToken> | listRefreshTokensForUserAndClient(String userId,
                                 String clientId,
                                 String expand,
                                 String after,
                                 Integer limit)List all Refresh Tokens for a Client
 Lists all refresh tokens issued for the specified User and Client | 
| List<OAuth2RefreshToken> | listRefreshTokensForUserAndClient(String userId,
                                 String clientId,
                                 String expand,
                                 String after,
                                 Integer limit,
                                 Map<String,String> additionalHeaders)List all Refresh Tokens for a Client
 Lists all refresh tokens issued for the specified User and Client | 
| List<UserBlock> | listUserBlocks(String userId)List all User Blocks
 Lists information about how the user is blocked from accessing their account | 
| List<UserBlock> | listUserBlocks(String userId,
              Map<String,String> additionalHeaders)List all User Blocks
 Lists information about how the user is blocked from accessing their account | 
| List<OAuth2Client> | listUserClients(String userId)List all Clients
 Lists all client resources for which the specified user has grants or tokens | 
| List<OAuth2Client> | listUserClients(String userId,
               Map<String,String> additionalHeaders)List all Clients
 Lists all client resources for which the specified user has grants or tokens | 
| List<OAuth2ScopeConsentGrant> | listUserGrants(String userId,
              String scopeId,
              String expand,
              String after,
              Integer limit)List all User Grants
 Lists all grants for the specified user | 
| List<OAuth2ScopeConsentGrant> | listUserGrants(String userId,
              String scopeId,
              String expand,
              String after,
              Integer limit,
              Map<String,String> additionalHeaders)List all User Grants
 Lists all grants for the specified user | 
| List<Group> | listUserGroups(String userId)List all Groups
 Lists all groups of which the user is a member | 
| List<Group> | listUserGroups(String userId,
              Map<String,String> additionalHeaders)List all Groups
 Lists all groups of which the user is a member | 
| List<IdentityProvider> | listUserIdentityProviders(String userId)List all Identity Providers
 Lists the IdPs associated with the user | 
| List<IdentityProvider> | listUserIdentityProviders(String userId,
                         Map<String,String> additionalHeaders)List all Identity Providers
 Lists the IdPs associated with the user | 
| List<User> | listUsers(String q,
         String after,
         Integer limit,
         String filter,
         String search,
         String sortBy,
         String sortOrder)List all Users
 Lists all users that do not have a status of 'DEPROVISIONED' (by default), up to the maximum (200 for most orgs), with pagination. | 
| List<User> | listUsers(String q,
         String after,
         Integer limit,
         String filter,
         String search,
         String sortBy,
         String sortOrder,
         Map<String,String> additionalHeaders)List all Users
 Lists all users that do not have a status of 'DEPROVISIONED' (by default), up to the maximum (200 for most orgs), with pagination. | 
| UserActivationToken | reactivateUser(String userId,
              Boolean sendEmail)Reactivate a User
 Reactivates a user. | 
| UserActivationToken | reactivateUser(String userId,
              Boolean sendEmail,
              Map<String,String> additionalHeaders)Reactivate a User
 Reactivates a user. | 
| User | replaceUser(String userId,
           User user,
           Boolean strict)Replace a User
 Replaces a user's profile and/or credentials using strict-update semantics | 
| User | replaceUser(String userId,
           User user,
           Boolean strict,
           Map<String,String> additionalHeaders)Replace a User
 Replaces a user's profile and/or credentials using strict-update semantics | 
| void | resetFactors(String userId)Reset all Factors
 Resets all factors for the specified user. | 
| void | resetFactors(String userId,
            Map<String,String> additionalHeaders)Reset all Factors
 Resets all factors for the specified user. | 
| void | revokeGrantsForUserAndClient(String userId,
                            String clientId)Revoke all Grants for a Client
 Revokes all grants for the specified user and client | 
| void | revokeGrantsForUserAndClient(String userId,
                            String clientId,
                            Map<String,String> additionalHeaders)Revoke all Grants for a Client
 Revokes all grants for the specified user and client | 
| void | revokeTokenForUserAndClient(String userId,
                           String clientId,
                           String tokenId)Revoke a Token for a Client
 Revokes the specified refresh token | 
| void | revokeTokenForUserAndClient(String userId,
                           String clientId,
                           String tokenId,
                           Map<String,String> additionalHeaders)Revoke a Token for a Client
 Revokes the specified refresh token | 
| void | revokeTokensForUserAndClient(String userId,
                            String clientId)Revoke all Refresh Tokens for a Client
 Revokes all refresh tokens issued for the specified User and Client | 
| void | revokeTokensForUserAndClient(String userId,
                            String clientId,
                            Map<String,String> additionalHeaders)Revoke all Refresh Tokens for a Client
 Revokes all refresh tokens issued for the specified User and Client | 
| void | revokeUserGrant(String userId,
               String grantId)Revoke a User Grant
 Revokes one grant for a specified user | 
| void | revokeUserGrant(String userId,
               String grantId,
               Map<String,String> additionalHeaders)Revoke a User Grant
 Revokes one grant for a specified user | 
| void | revokeUserGrants(String userId)Revoke all User Grants
 Revokes all grants for a specified user | 
| void | revokeUserGrants(String userId,
                Map<String,String> additionalHeaders)Revoke all User Grants
 Revokes all grants for a specified user | 
| void | revokeUserSessions(String userId,
                  Boolean oauthTokens)Revoke all User Sessions
 Revokes all active identity provider sessions of the user. | 
| void | revokeUserSessions(String userId,
                  Boolean oauthTokens,
                  Map<String,String> additionalHeaders)Revoke all User Sessions
 Revokes all active identity provider sessions of the user. | 
| void | setApiClient(ApiClient apiClient) | 
| void | setLinkedObjectForUser(String userId,
                      String primaryRelationshipName,
                      String primaryUserId)Create a Linked Object for two Users
 Creates a Linked Object for two users | 
| void | setLinkedObjectForUser(String userId,
                      String primaryRelationshipName,
                      String primaryUserId,
                      Map<String,String> additionalHeaders)Create a Linked Object for two Users
 Creates a Linked Object for two users | 
| void | suspendUser(String userId)Suspend a User
 Suspends a user. | 
| void | suspendUser(String userId,
           Map<String,String> additionalHeaders)Suspend a User
 Suspends a user. | 
| void | unlockUser(String userId)Unlock a User
 Unlocks a user with a `LOCKED_OUT` status or unlocks a user with an `ACTIVE` status that is blocked from unknown devices. | 
| void | unlockUser(String userId,
          Map<String,String> additionalHeaders)Unlock a User
 Unlocks a user with a `LOCKED_OUT` status or unlocks a user with an `ACTIVE` status that is blocked from unknown devices. | 
| void | unsuspendUser(String userId)Unsuspend a User
 Unsuspends a user and returns them to the `ACTIVE` state. | 
| void | unsuspendUser(String userId,
             Map<String,String> additionalHeaders)Unsuspend a User
 Unsuspends a user and returns them to the `ACTIVE` state. | 
| User | updateUser(String userId,
          UpdateUserRequest user,
          Boolean strict)Update a User
 Updates a user partially determined by the request parameters | 
| User | updateUser(String userId,
          UpdateUserRequest user,
          Boolean strict,
          Map<String,String> additionalHeaders)Update a User
 Updates a user partially determined by the request parameters | 
public UserApi()
public UserApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public UserActivationToken activateUser(String userId, Boolean sendEmail) throws ApiException
userId - (required)sendEmail - Sends an activation email to the user if true (required)ApiException - if fails to make API callpublic UserActivationToken activateUser(String userId, Boolean sendEmail, Map<String,String> additionalHeaders) throws ApiException
userId - (required)sendEmail - Sends an activation email to the user if true (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic UserCredentials changePassword(String userId, ChangePasswordRequest changePasswordRequest, Boolean strict) throws ApiException
userId - (required)changePasswordRequest - (required)strict - (optional)ApiException - if fails to make API callpublic UserCredentials changePassword(String userId, ChangePasswordRequest changePasswordRequest, Boolean strict, Map<String,String> additionalHeaders) throws ApiException
userId - (required)changePasswordRequest - (required)strict - (optional)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic UserCredentials changeRecoveryQuestion(String userId, UserCredentials userCredentials) throws ApiException
userId - (required)userCredentials - (required)ApiException - if fails to make API callpublic UserCredentials changeRecoveryQuestion(String userId, UserCredentials userCredentials, Map<String,String> additionalHeaders) throws ApiException
userId - (required)userCredentials - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic User createUser(CreateUserRequest body, Boolean activate, Boolean provider, UserNextLogin nextLogin) throws ApiException
body - (required)activate - Executes activation lifecycle operation when creating the user (optional, default to true)provider - Indicates whether to create a user with a specified authentication provider (optional, default to false)nextLogin - With activate=true, set nextLogin to \"changePassword\" to have the password be EXPIRED, so user must change it the next time they log in. (optional)ApiException - if fails to make API callpublic User createUser(CreateUserRequest body, Boolean activate, Boolean provider, UserNextLogin nextLogin, Map<String,String> additionalHeaders) throws ApiException
body - (required)activate - Executes activation lifecycle operation when creating the user (optional, default to true)provider - Indicates whether to create a user with a specified authentication provider (optional, default to false)nextLogin - With activate=true, set nextLogin to \"changePassword\" to have the password be EXPIRED, so user must change it the next time they log in. (optional)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void deactivateUser(String userId, Boolean sendEmail) throws ApiException
userId - (required)sendEmail - (optional, default to false)ApiException - if fails to make API callpublic void deactivateUser(String userId, Boolean sendEmail, Map<String,String> additionalHeaders) throws ApiException
userId - (required)sendEmail - (optional, default to false)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void deleteLinkedObjectForUser(String userId, String relationshipName) throws ApiException
userId - (required)relationshipName - (required)ApiException - if fails to make API callpublic void deleteLinkedObjectForUser(String userId, String relationshipName, Map<String,String> additionalHeaders) throws ApiException
userId - (required)relationshipName - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void deleteUser(String userId, Boolean sendEmail) throws ApiException
userId - (required)sendEmail - (optional, default to false)ApiException - if fails to make API callpublic void deleteUser(String userId, Boolean sendEmail, Map<String,String> additionalHeaders) throws ApiException
userId - (required)sendEmail - (optional, default to false)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic User expirePassword(String userId) throws ApiException
userId - (required)ApiException - if fails to make API callpublic User expirePassword(String userId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic TempPassword expirePasswordAndGetTemporaryPassword(String userId, Boolean revokeSessions) throws ApiException
userId - (required)revokeSessions - When set to `true` (and the session is a user session), all user sessions are revoked except the current session. (optional, default to false)ApiException - if fails to make API callpublic TempPassword expirePasswordAndGetTemporaryPassword(String userId, Boolean revokeSessions, Map<String,String> additionalHeaders) throws ApiException
userId - (required)revokeSessions - When set to `true` (and the session is a user session), all user sessions are revoked except the current session. (optional, default to false)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic ForgotPasswordResponse forgotPassword(String userId, Boolean sendEmail) throws ApiException
userId - (required)sendEmail - (optional, default to true)ApiException - if fails to make API callpublic ForgotPasswordResponse forgotPassword(String userId, Boolean sendEmail, Map<String,String> additionalHeaders) throws ApiException
userId - (required)sendEmail - (optional, default to true)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic UserCredentials forgotPasswordSetNewPassword(String userId, UserCredentials userCredentials, Boolean sendEmail) throws ApiException
userId - (required)userCredentials - (required)sendEmail - (optional, default to true)ApiException - if fails to make API callpublic UserCredentials forgotPasswordSetNewPassword(String userId, UserCredentials userCredentials, Boolean sendEmail, Map<String,String> additionalHeaders) throws ApiException
userId - (required)userCredentials - (required)sendEmail - (optional, default to true)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic ResetPasswordToken generateResetPasswordToken(String userId, Boolean sendEmail, Boolean revokeSessions) throws ApiException
userId - (required)sendEmail - (required)revokeSessions - When set to `true` (and the session is a user session), all user sessions are revoked except the current session. (optional, default to false)ApiException - if fails to make API callpublic ResetPasswordToken generateResetPasswordToken(String userId, Boolean sendEmail, Boolean revokeSessions, Map<String,String> additionalHeaders) throws ApiException
userId - (required)sendEmail - (required)revokeSessions - When set to `true` (and the session is a user session), all user sessions are revoked except the current session. (optional, default to false)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic OAuth2RefreshToken getRefreshTokenForUserAndClient(String userId, String clientId, String tokenId, String expand, Integer limit, String after) throws ApiException
userId - (required)clientId - `client_id` of the app (required)tokenId - `id` of Token (required)expand - (optional)limit - (optional, default to 20)after - (optional)ApiException - if fails to make API callpublic OAuth2RefreshToken getRefreshTokenForUserAndClient(String userId, String clientId, String tokenId, String expand, Integer limit, String after, Map<String,String> additionalHeaders) throws ApiException
userId - (required)clientId - `client_id` of the app (required)tokenId - `id` of Token (required)expand - (optional)limit - (optional, default to 20)after - (optional)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic User getUser(String userId) throws ApiException
userId - (required)ApiException - if fails to make API callpublic User getUser(String userId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic OAuth2ScopeConsentGrant getUserGrant(String userId, String grantId, String expand) throws ApiException
userId - (required)grantId - `id` of the Grant (required)expand - (optional)ApiException - if fails to make API callpublic OAuth2ScopeConsentGrant getUserGrant(String userId, String grantId, String expand, Map<String,String> additionalHeaders) throws ApiException
userId - (required)grantId - `id` of the Grant (required)expand - (optional)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic List<AppLink> listAppLinks(String userId) throws ApiException
userId - (required)ApiException - if fails to make API callpublic List<AppLink> listAppLinks(String userId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic List<OAuth2ScopeConsentGrant> listGrantsForUserAndClient(String userId, String clientId, String expand, String after, Integer limit) throws ApiException
userId - (required)clientId - `client_id` of the app (required)expand - (optional)after - (optional)limit - (optional, default to 20)ApiException - if fails to make API callpublic List<OAuth2ScopeConsentGrant> listGrantsForUserAndClient(String userId, String clientId, String expand, String after, Integer limit, Map<String,String> additionalHeaders) throws ApiException
userId - (required)clientId - `client_id` of the app (required)expand - (optional)after - (optional)limit - (optional, default to 20)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic List<Object> listLinkedObjectsForUser(String userId, String relationshipName, String after, Integer limit) throws ApiException
userId - (required)relationshipName - (required)after - (optional)limit - (optional, default to -1)ApiException - if fails to make API callpublic List<Object> listLinkedObjectsForUser(String userId, String relationshipName, String after, Integer limit, Map<String,String> additionalHeaders) throws ApiException
userId - (required)relationshipName - (required)after - (optional)limit - (optional, default to -1)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic List<OAuth2RefreshToken> listRefreshTokensForUserAndClient(String userId, String clientId, String expand, String after, Integer limit) throws ApiException
userId - (required)clientId - `client_id` of the app (required)expand - (optional)after - (optional)limit - (optional, default to 20)ApiException - if fails to make API callpublic List<OAuth2RefreshToken> listRefreshTokensForUserAndClient(String userId, String clientId, String expand, String after, Integer limit, Map<String,String> additionalHeaders) throws ApiException
userId - (required)clientId - `client_id` of the app (required)expand - (optional)after - (optional)limit - (optional, default to 20)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic List<UserBlock> listUserBlocks(String userId) throws ApiException
userId - (required)ApiException - if fails to make API callpublic List<UserBlock> listUserBlocks(String userId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic List<OAuth2Client> listUserClients(String userId) throws ApiException
userId - (required)ApiException - if fails to make API callpublic List<OAuth2Client> listUserClients(String userId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic List<OAuth2ScopeConsentGrant> listUserGrants(String userId, String scopeId, String expand, String after, Integer limit) throws ApiException
userId - (required)scopeId - (optional)expand - (optional)after - (optional)limit - (optional, default to 20)ApiException - if fails to make API callpublic List<OAuth2ScopeConsentGrant> listUserGrants(String userId, String scopeId, String expand, String after, Integer limit, Map<String,String> additionalHeaders) throws ApiException
userId - (required)scopeId - (optional)expand - (optional)after - (optional)limit - (optional, default to 20)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic List<Group> listUserGroups(String userId) throws ApiException
userId - (required)ApiException - if fails to make API callpublic List<Group> listUserGroups(String userId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic List<IdentityProvider> listUserIdentityProviders(String userId) throws ApiException
userId - (required)ApiException - if fails to make API callpublic List<IdentityProvider> listUserIdentityProviders(String userId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic List<User> listUsers(String q, String after, Integer limit, String filter, String search, String sortBy, String sortOrder) throws ApiException
q - Finds a user that matches firstName, lastName, and email properties (optional)after - The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](/#pagination) for more information. (optional)limit - Specifies the number of results returned. Defaults to 10 if `q` is provided. (optional, default to 200)filter - Filters users with a supported expression for a subset of properties (optional)search - Searches for users with a supported filtering expression for most properties. Okta recommends using this parameter for search for best performance. (optional)sortBy - (optional)sortOrder - Sorting is done in ASCII sort order (that is, by ASCII character value), but isn't case sensitive. (optional)ApiException - if fails to make API callpublic List<User> listUsers(String q, String after, Integer limit, String filter, String search, String sortBy, String sortOrder, Map<String,String> additionalHeaders) throws ApiException
q - Finds a user that matches firstName, lastName, and email properties (optional)after - The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](/#pagination) for more information. (optional)limit - Specifies the number of results returned. Defaults to 10 if `q` is provided. (optional, default to 200)filter - Filters users with a supported expression for a subset of properties (optional)search - Searches for users with a supported filtering expression for most properties. Okta recommends using this parameter for search for best performance. (optional)sortBy - (optional)sortOrder - Sorting is done in ASCII sort order (that is, by ASCII character value), but isn't case sensitive. (optional)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic UserActivationToken reactivateUser(String userId, Boolean sendEmail) throws ApiException
userId - (required)sendEmail - Sends an activation email to the user if true (optional, default to false)ApiException - if fails to make API callpublic UserActivationToken reactivateUser(String userId, Boolean sendEmail, Map<String,String> additionalHeaders) throws ApiException
userId - (required)sendEmail - Sends an activation email to the user if true (optional, default to false)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic User replaceUser(String userId, User user, Boolean strict) throws ApiException
userId - (required)user - (required)strict - (optional)ApiException - if fails to make API callpublic User replaceUser(String userId, User user, Boolean strict, Map<String,String> additionalHeaders) throws ApiException
userId - (required)user - (required)strict - (optional)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void resetFactors(String userId) throws ApiException
userId - (required)ApiException - if fails to make API callpublic void resetFactors(String userId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void revokeGrantsForUserAndClient(String userId, String clientId) throws ApiException
userId - (required)clientId - `client_id` of the app (required)ApiException - if fails to make API callpublic void revokeGrantsForUserAndClient(String userId, String clientId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)clientId - `client_id` of the app (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void revokeTokenForUserAndClient(String userId, String clientId, String tokenId) throws ApiException
userId - (required)clientId - `client_id` of the app (required)tokenId - `id` of Token (required)ApiException - if fails to make API callpublic void revokeTokenForUserAndClient(String userId, String clientId, String tokenId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)clientId - `client_id` of the app (required)tokenId - `id` of Token (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void revokeTokensForUserAndClient(String userId, String clientId) throws ApiException
userId - (required)clientId - `client_id` of the app (required)ApiException - if fails to make API callpublic void revokeTokensForUserAndClient(String userId, String clientId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)clientId - `client_id` of the app (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void revokeUserGrant(String userId, String grantId) throws ApiException
userId - (required)grantId - `id` of the Grant (required)ApiException - if fails to make API callpublic void revokeUserGrant(String userId, String grantId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)grantId - `id` of the Grant (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void revokeUserGrants(String userId) throws ApiException
userId - (required)ApiException - if fails to make API callpublic void revokeUserGrants(String userId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void revokeUserSessions(String userId, Boolean oauthTokens) throws ApiException
userId - (required)oauthTokens - Revoke issued OpenID Connect and OAuth refresh and access tokens (optional, default to false)ApiException - if fails to make API callpublic void revokeUserSessions(String userId, Boolean oauthTokens, Map<String,String> additionalHeaders) throws ApiException
userId - (required)oauthTokens - Revoke issued OpenID Connect and OAuth refresh and access tokens (optional, default to false)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void setLinkedObjectForUser(String userId, String primaryRelationshipName, String primaryUserId) throws ApiException
userId - (required)primaryRelationshipName - (required)primaryUserId - `id` of primary User (required)ApiException - if fails to make API callpublic void setLinkedObjectForUser(String userId, String primaryRelationshipName, String primaryUserId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)primaryRelationshipName - (required)primaryUserId - `id` of primary User (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void suspendUser(String userId) throws ApiException
userId - (required)ApiException - if fails to make API callpublic void suspendUser(String userId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void unlockUser(String userId) throws ApiException
userId - (required)ApiException - if fails to make API callpublic void unlockUser(String userId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic void unsuspendUser(String userId) throws ApiException
userId - (required)ApiException - if fails to make API callpublic void unsuspendUser(String userId, Map<String,String> additionalHeaders) throws ApiException
userId - (required)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callpublic User updateUser(String userId, UpdateUserRequest user, Boolean strict) throws ApiException
userId - (required)user - (required)strict - (optional)ApiException - if fails to make API callpublic User updateUser(String userId, UpdateUserRequest user, Boolean strict, Map<String,String> additionalHeaders) throws ApiException
userId - (required)user - (required)strict - (optional)additionalHeaders - additionalHeaders for this callApiException - if fails to make API callprotected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Copyright © 2017–2023 Okta. All rights reserved.