Class UserResourcesApi

java.lang.Object
com.okta.sdk.resource.api.UserResourcesApi

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]", comments="Generator version: 7.15.0") public class UserResourcesApi extends Object
  • Constructor Details

    • UserResourcesApi

      public UserResourcesApi()
    • UserResourcesApi

      public UserResourcesApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • listAppLinks

      public List<AssignedAppLink> listAppLinks(String id) throws ApiException
      List all assigned app links Lists all app links for all direct or indirect (through group membership) assigned apps. > **Note:** To list all apps in an org, use the [List all applications endpoint in the Applications API](/openapi/okta-management/management/tag/Application/#tag/Application/operation/listApplications).
      Parameters:
      id - An ID, login, or login shortname (as long as the shortname is unambiguous) of an existing Okta user (required)
      Returns:
      List<AssignedAppLink>
      Throws:
      ApiException - if fails to make API call
    • listAppLinks

      public List<AssignedAppLink> listAppLinks(String id, Map<String,String> additionalHeaders) throws ApiException
      List all assigned app links Lists all app links for all direct or indirect (through group membership) assigned apps. > **Note:** To list all apps in an org, use the [List all applications endpoint in the Applications API](/openapi/okta-management/management/tag/Application/#tag/Application/operation/listApplications).
      Parameters:
      id - An ID, login, or login shortname (as long as the shortname is unambiguous) of an existing Okta user (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<AssignedAppLink>
      Throws:
      ApiException - if fails to make API call
    • listAppLinksPaged

      public Iterable<AssignedAppLink> listAppLinksPaged(String id)
      List all assigned app links (Paginated) Lists all app links for all direct or indirect (through group membership) assigned apps. > **Note:** To list all apps in an org, use the [List all applications endpoint in the Applications API](/openapi/okta-management/management/tag/Application/#tag/Application/operation/listApplications). This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.
      Parameters:
      id - An ID, login, or login shortname (as long as the shortname is unambiguous) of an existing Okta user (required)
      Returns:
      Iterable<AssignedAppLink> lazy iterable over all pages
    • listAppLinksPaged

      public Iterable<AssignedAppLink> listAppLinksPaged(String id, Map<String,String> additionalHeaders)
      List all assigned app links (Paginated with additional headers) Lists all app links for all direct or indirect (through group membership) assigned apps. > **Note:** To list all apps in an org, use the [List all applications endpoint in the Applications API](/openapi/okta-management/management/tag/Application/#tag/Application/operation/listApplications). This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      id - An ID, login, or login shortname (as long as the shortname is unambiguous) of an existing Okta user (required)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<AssignedAppLink> lazy iterable over all pages
    • listUserClients

      public List<OAuth2Client> listUserClients(String userId) throws ApiException
      List all clients Lists all client resources for which the specified user has grants or tokens. > **Note:** To list all client resources for which a specified authorization server has tokens, use the [List all client resources for an authorization server in the Authorization Servers API](/openapi/okta-management/management/tag/AuthorizationServerClients/#tag/AuthorizationServerClients/operation/listOAuth2ClientsForAuthorizationServer).
      Parameters:
      userId - ID of an existing Okta user (required)
      Returns:
      List<OAuth2Client>
      Throws:
      ApiException - if fails to make API call
    • listUserClients

      public List<OAuth2Client> listUserClients(String userId, Map<String,String> additionalHeaders) throws ApiException
      List all clients Lists all client resources for which the specified user has grants or tokens. > **Note:** To list all client resources for which a specified authorization server has tokens, use the [List all client resources for an authorization server in the Authorization Servers API](/openapi/okta-management/management/tag/AuthorizationServerClients/#tag/AuthorizationServerClients/operation/listOAuth2ClientsForAuthorizationServer).
      Parameters:
      userId - ID of an existing Okta user (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<OAuth2Client>
      Throws:
      ApiException - if fails to make API call
    • listUserClientsPaged

      public Iterable<OAuth2Client> listUserClientsPaged(String userId)
      List all clients (Paginated) Lists all client resources for which the specified user has grants or tokens. > **Note:** To list all client resources for which a specified authorization server has tokens, use the [List all client resources for an authorization server in the Authorization Servers API](/openapi/okta-management/management/tag/AuthorizationServerClients/#tag/AuthorizationServerClients/operation/listOAuth2ClientsForAuthorizationServer). This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.
      Parameters:
      userId - ID of an existing Okta user (required)
      Returns:
      Iterable<OAuth2Client> lazy iterable over all pages
    • listUserClientsPaged

      public Iterable<OAuth2Client> listUserClientsPaged(String userId, Map<String,String> additionalHeaders)
      List all clients (Paginated with additional headers) Lists all client resources for which the specified user has grants or tokens. > **Note:** To list all client resources for which a specified authorization server has tokens, use the [List all client resources for an authorization server in the Authorization Servers API](/openapi/okta-management/management/tag/AuthorizationServerClients/#tag/AuthorizationServerClients/operation/listOAuth2ClientsForAuthorizationServer). This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      userId - ID of an existing Okta user (required)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<OAuth2Client> lazy iterable over all pages
    • listUserDevices

      public List<UserDevice> listUserDevices(String userId) throws ApiException
      List all devices Lists all devices enrolled by a user. > **Note:** To list all devices registered to an org, use the [List all devices endpoint in the Devices API](/openapi/okta-management/management/tag/Device/#tag/Device/operation/listDevices).
      Parameters:
      userId - ID of an existing Okta user (required)
      Returns:
      List<UserDevice>
      Throws:
      ApiException - if fails to make API call
    • listUserDevices

      public List<UserDevice> listUserDevices(String userId, Map<String,String> additionalHeaders) throws ApiException
      List all devices Lists all devices enrolled by a user. > **Note:** To list all devices registered to an org, use the [List all devices endpoint in the Devices API](/openapi/okta-management/management/tag/Device/#tag/Device/operation/listDevices).
      Parameters:
      userId - ID of an existing Okta user (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<UserDevice>
      Throws:
      ApiException - if fails to make API call
    • listUserDevicesPaged

      public Iterable<UserDevice> listUserDevicesPaged(String userId)
      List all devices (Paginated) Lists all devices enrolled by a user. > **Note:** To list all devices registered to an org, use the [List all devices endpoint in the Devices API](/openapi/okta-management/management/tag/Device/#tag/Device/operation/listDevices). This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.
      Parameters:
      userId - ID of an existing Okta user (required)
      Returns:
      Iterable<UserDevice> lazy iterable over all pages
    • listUserDevicesPaged

      public Iterable<UserDevice> listUserDevicesPaged(String userId, Map<String,String> additionalHeaders)
      List all devices (Paginated with additional headers) Lists all devices enrolled by a user. > **Note:** To list all devices registered to an org, use the [List all devices endpoint in the Devices API](/openapi/okta-management/management/tag/Device/#tag/Device/operation/listDevices). This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      userId - ID of an existing Okta user (required)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<UserDevice> lazy iterable over all pages
    • listUserGroups

      public List<Group> listUserGroups(String id) throws ApiException
      List all groups Lists all groups of which the user is a member. > **Note:** To list all groups in your org, use the [List all groups endpoints in the Groups API](/openapi/okta-management/management/tag/Group/#tag/Group/operation/listGroups).
      Parameters:
      id - An ID, login, or login shortname (as long as the shortname is unambiguous) of an existing Okta user (required)
      Returns:
      List<Group>
      Throws:
      ApiException - if fails to make API call
    • listUserGroups

      public List<Group> listUserGroups(String id, Map<String,String> additionalHeaders) throws ApiException
      List all groups Lists all groups of which the user is a member. > **Note:** To list all groups in your org, use the [List all groups endpoints in the Groups API](/openapi/okta-management/management/tag/Group/#tag/Group/operation/listGroups).
      Parameters:
      id - An ID, login, or login shortname (as long as the shortname is unambiguous) of an existing Okta user (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<Group>
      Throws:
      ApiException - if fails to make API call
    • listUserGroupsPaged

      public Iterable<Group> listUserGroupsPaged(String id)
      List all groups (Paginated) Lists all groups of which the user is a member. > **Note:** To list all groups in your org, use the [List all groups endpoints in the Groups API](/openapi/okta-management/management/tag/Group/#tag/Group/operation/listGroups). This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.
      Parameters:
      id - An ID, login, or login shortname (as long as the shortname is unambiguous) of an existing Okta user (required)
      Returns:
      Iterable<Group> lazy iterable over all pages
    • listUserGroupsPaged

      public Iterable<Group> listUserGroupsPaged(String id, Map<String,String> additionalHeaders)
      List all groups (Paginated with additional headers) Lists all groups of which the user is a member. > **Note:** To list all groups in your org, use the [List all groups endpoints in the Groups API](/openapi/okta-management/management/tag/Group/#tag/Group/operation/listGroups). This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      id - An ID, login, or login shortname (as long as the shortname is unambiguous) of an existing Okta user (required)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<Group> lazy iterable over all pages
    • getObjectMapper

      protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()