Package com.okta.sdk.resource.api
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static com.fasterxml.jackson.databind.ObjectMapperlistAppLinks(String id) List all assigned app links Lists all app links for all direct or indirect (through group membership) assigned apps.listAppLinks(String id, Map<String, String> additionalHeaders) List all assigned app links Lists all app links for all direct or indirect (through group membership) assigned apps.List all assigned app links (Paginated) Lists all app links for all direct or indirect (through group membership) assigned apps.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.listUserClients(String userId) List all clients Lists all client resources for which the specified user has grants or tokens.listUserClients(String userId, Map<String, String> additionalHeaders) List all clients Lists all client resources for which the specified user has grants or tokens.listUserClientsPaged(String userId) List all clients (Paginated) Lists all client resources for which the specified user has grants or tokens.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.listUserDevices(String userId) List all devices Lists all devices enrolled by a user.listUserDevices(String userId, Map<String, String> additionalHeaders) List all devices Lists all devices enrolled by a user.listUserDevicesPaged(String userId) List all devices (Paginated) Lists all devices enrolled by a user.listUserDevicesPaged(String userId, Map<String, String> additionalHeaders) List all devices (Paginated with additional headers) Lists all devices enrolled by a user.listUserGroups(String id) List all groups Lists all groups of which the user is a member.listUserGroups(String id, Map<String, String> additionalHeaders) List all groups Lists all groups of which the user is a member.List all groups (Paginated) Lists all groups of which the user is a member.listUserGroupsPaged(String id, Map<String, String> additionalHeaders) List all groups (Paginated with additional headers) Lists all groups of which the user is a member.voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
UserResourcesApi
public UserResourcesApi() -
UserResourcesApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
listAppLinks
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 ApiExceptionList 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
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
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
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 ApiExceptionList 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
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
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 ApiExceptionList 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
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
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 ApiExceptionList 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
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
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()
-