Class RoleBTargetBGroupApi

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

@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 RoleBTargetBGroupApi extends Object
  • Constructor Details

    • RoleBTargetBGroupApi

      public RoleBTargetBGroupApi()
    • RoleBTargetBGroupApi

      public RoleBTargetBGroupApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • assignAppInstanceTargetToAppAdminRoleForGroup

      public void assignAppInstanceTargetToAppAdminRoleForGroup(String groupId, String roleAssignmentId, String appName, String appId) throws ApiException
      Assign a group role app instance target Assigns an app instance target to an `APP_ADMIN` role assignment to a group. When you assign the first OIN app or app instance target, you reduce the scope of the role assignment. The role no longer applies to all app targets, but applies only to the specified target. > **Note:** You can target a mixture of both OIN app and app instance targets, but you can't assign permissions to manage all instances of an OIN app and then assign a subset of permissions to the same app. > For example, you can't specify that an admin has access to manage all instances of the Salesforce app and then also manage specific configurations of the Salesforce app.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      appName - Name of the app definition (the OIN catalog app key name) (required)
      appId - Application ID (required)
      Throws:
      ApiException - if fails to make API call
    • assignAppInstanceTargetToAppAdminRoleForGroup

      public void assignAppInstanceTargetToAppAdminRoleForGroup(String groupId, String roleAssignmentId, String appName, String appId, Map<String,String> additionalHeaders) throws ApiException
      Assign a group role app instance target Assigns an app instance target to an `APP_ADMIN` role assignment to a group. When you assign the first OIN app or app instance target, you reduce the scope of the role assignment. The role no longer applies to all app targets, but applies only to the specified target. > **Note:** You can target a mixture of both OIN app and app instance targets, but you can't assign permissions to manage all instances of an OIN app and then assign a subset of permissions to the same app. > For example, you can't specify that an admin has access to manage all instances of the Salesforce app and then also manage specific configurations of the Salesforce app.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      appName - Name of the app definition (the OIN catalog app key name) (required)
      appId - Application ID (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • assignAppTargetToAdminRoleForGroup

      public void assignAppTargetToAdminRoleForGroup(String groupId, String roleAssignmentId, String appName) throws ApiException
      Assign a group role app target Assigns an OIN app target to an `APP_ADMIN` role assignment to a group. When you assign the first OIN app target, you reduce the scope of the role assignment. The role no longer applies to all app targets, but applies only to the specified target. An OIN app target that's assigned to the role overrides any existing instance targets of the OIN app. For example, if a user is assigned to administer a specific Facebook instance, a successful request to add an OIN app with `facebook` for `appName` makes that user the administrator for all Facebook instances.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      appName - Name of the app definition (the OIN catalog app key name) (required)
      Throws:
      ApiException - if fails to make API call
    • assignAppTargetToAdminRoleForGroup

      public void assignAppTargetToAdminRoleForGroup(String groupId, String roleAssignmentId, String appName, Map<String,String> additionalHeaders) throws ApiException
      Assign a group role app target Assigns an OIN app target to an `APP_ADMIN` role assignment to a group. When you assign the first OIN app target, you reduce the scope of the role assignment. The role no longer applies to all app targets, but applies only to the specified target. An OIN app target that's assigned to the role overrides any existing instance targets of the OIN app. For example, if a user is assigned to administer a specific Facebook instance, a successful request to add an OIN app with `facebook` for `appName` makes that user the administrator for all Facebook instances.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      appName - Name of the app definition (the OIN catalog app key name) (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • assignGroupTargetToGroupAdminRole

      public void assignGroupTargetToGroupAdminRole(String groupId, String roleAssignmentId, String targetGroupId) throws ApiException
      Assign a group role group target Assigns a group target to a [`USER_ADMIN`](/openapi/okta-management/guides/roles/#standard-roles), `HELP_DESK_ADMIN`, or `GROUP_MEMBERSHIP_ADMIN` role assignment to a group. When you assign the first group target, you reduce the scope of the role assignment. The role no longer applies to all targets but applies only to the specified target.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      targetGroupId - (required)
      Throws:
      ApiException - if fails to make API call
    • assignGroupTargetToGroupAdminRole

      public void assignGroupTargetToGroupAdminRole(String groupId, String roleAssignmentId, String targetGroupId, Map<String,String> additionalHeaders) throws ApiException
      Assign a group role group target Assigns a group target to a [`USER_ADMIN`](/openapi/okta-management/guides/roles/#standard-roles), `HELP_DESK_ADMIN`, or `GROUP_MEMBERSHIP_ADMIN` role assignment to a group. When you assign the first group target, you reduce the scope of the role assignment. The role no longer applies to all targets but applies only to the specified target.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      targetGroupId - (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • listApplicationTargetsForApplicationAdministratorRoleForGroup

      public List<CatalogApplication> listApplicationTargetsForApplicationAdministratorRoleForGroup(String groupId, String roleAssignmentId, String after, Integer limit) throws ApiException
      List all group role app targets Lists all app targets for an `APP_ADMIN` role assignment to a group. The response includes a list of OIN-cataloged apps or app instances. The response payload for an app instance contains the `id` property, but an OIN-cataloged app doesn't.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      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](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      limit - A limit on the number of objects to return (optional, default to 20)
      Returns:
      List<CatalogApplication>
      Throws:
      ApiException - if fails to make API call
    • listApplicationTargetsForApplicationAdministratorRoleForGroup

      public List<CatalogApplication> listApplicationTargetsForApplicationAdministratorRoleForGroup(String groupId, String roleAssignmentId, String after, Integer limit, Map<String,String> additionalHeaders) throws ApiException
      List all group role app targets Lists all app targets for an `APP_ADMIN` role assignment to a group. The response includes a list of OIN-cataloged apps or app instances. The response payload for an app instance contains the `id` property, but an OIN-cataloged app doesn't.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      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](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      limit - A limit on the number of objects to return (optional, default to 20)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<CatalogApplication>
      Throws:
      ApiException - if fails to make API call
    • listApplicationTargetsForApplicationAdministratorRoleForGroupPaged

      public Iterable<CatalogApplication> listApplicationTargetsForApplicationAdministratorRoleForGroupPaged(String groupId, String roleAssignmentId, String after, Integer limit)
      List all group role app targets (Paginated) Lists all app targets for an `APP_ADMIN` role assignment to a group. The response includes a list of OIN-cataloged apps or app instances. The response payload for an app instance contains the `id` property, but an OIN-cataloged app doesn't. 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:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      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](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      limit - A limit on the number of objects to return (optional, default to 20)
      Returns:
      Iterable<CatalogApplication> lazy iterable over all pages
    • listApplicationTargetsForApplicationAdministratorRoleForGroupPaged

      public Iterable<CatalogApplication> listApplicationTargetsForApplicationAdministratorRoleForGroupPaged(String groupId, String roleAssignmentId, String after, Integer limit, Map<String,String> additionalHeaders)
      List all group role app targets (Paginated with additional headers) Lists all app targets for an `APP_ADMIN` role assignment to a group. The response includes a list of OIN-cataloged apps or app instances. The response payload for an app instance contains the `id` property, but an OIN-cataloged app doesn't. This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      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](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      limit - A limit on the number of objects to return (optional, default to 20)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<CatalogApplication> lazy iterable over all pages
    • listGroupTargetsForGroupRole

      public List<Group> listGroupTargetsForGroupRole(String groupId, String roleAssignmentId, String after, Integer limit) throws ApiException
      List all group role group targets Lists all group targets for a [`USER_ADMIN`](/openapi/okta-management/guides/roles/#standard-roles), `HELP_DESK_ADMIN`, or `GROUP_MEMBERSHIP_ADMIN` role assignment to a group. If the role isn't scoped to specific group targets, Okta returns an empty array `[]`.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      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](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      limit - A limit on the number of objects to return (optional, default to 20)
      Returns:
      List<Group>
      Throws:
      ApiException - if fails to make API call
    • listGroupTargetsForGroupRole

      public List<Group> listGroupTargetsForGroupRole(String groupId, String roleAssignmentId, String after, Integer limit, Map<String,String> additionalHeaders) throws ApiException
      List all group role group targets Lists all group targets for a [`USER_ADMIN`](/openapi/okta-management/guides/roles/#standard-roles), `HELP_DESK_ADMIN`, or `GROUP_MEMBERSHIP_ADMIN` role assignment to a group. If the role isn't scoped to specific group targets, Okta returns an empty array `[]`.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      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](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      limit - A limit on the number of objects to return (optional, default to 20)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<Group>
      Throws:
      ApiException - if fails to make API call
    • listGroupTargetsForGroupRolePaged

      public Iterable<Group> listGroupTargetsForGroupRolePaged(String groupId, String roleAssignmentId, String after, Integer limit)
      List all group role group targets (Paginated) Lists all group targets for a [`USER_ADMIN`](/openapi/okta-management/guides/roles/#standard-roles), `HELP_DESK_ADMIN`, or `GROUP_MEMBERSHIP_ADMIN` role assignment to a group. If the role isn't scoped to specific group targets, Okta returns an empty array `[]`. 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:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      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](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      limit - A limit on the number of objects to return (optional, default to 20)
      Returns:
      Iterable<Group> lazy iterable over all pages
    • listGroupTargetsForGroupRolePaged

      public Iterable<Group> listGroupTargetsForGroupRolePaged(String groupId, String roleAssignmentId, String after, Integer limit, Map<String,String> additionalHeaders)
      List all group role group targets (Paginated with additional headers) Lists all group targets for a [`USER_ADMIN`](/openapi/okta-management/guides/roles/#standard-roles), `HELP_DESK_ADMIN`, or `GROUP_MEMBERSHIP_ADMIN` role assignment to a group. If the role isn't scoped to specific group targets, Okta returns an empty array `[]`. This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      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](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)
      limit - A limit on the number of objects to return (optional, default to 20)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<Group> lazy iterable over all pages
    • unassignAppInstanceTargetToAppAdminRoleForGroup

      public void unassignAppInstanceTargetToAppAdminRoleForGroup(String groupId, String roleAssignmentId, String appName, String appId) throws ApiException
      Unassign a group role app instance target Unassigns an app instance target from an `APP_ADMIN` role assignment to a group > **Note:** You can't remove the last app instance target from a role assignment. > If you need a role assignment that applies to all apps, delete the `APP_ADMIN` role assignment with the target and create another one. See [Unassign a group role](/openapi/okta-management/management/tag/RoleAssignmentBGroup/#tag/RoleAssignmentBGroup/operation/unassignRoleFromGroup).
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      appName - Name of the app definition (the OIN catalog app key name) (required)
      appId - Application ID (required)
      Throws:
      ApiException - if fails to make API call
    • unassignAppInstanceTargetToAppAdminRoleForGroup

      public void unassignAppInstanceTargetToAppAdminRoleForGroup(String groupId, String roleAssignmentId, String appName, String appId, Map<String,String> additionalHeaders) throws ApiException
      Unassign a group role app instance target Unassigns an app instance target from an `APP_ADMIN` role assignment to a group > **Note:** You can't remove the last app instance target from a role assignment. > If you need a role assignment that applies to all apps, delete the `APP_ADMIN` role assignment with the target and create another one. See [Unassign a group role](/openapi/okta-management/management/tag/RoleAssignmentBGroup/#tag/RoleAssignmentBGroup/operation/unassignRoleFromGroup).
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      appName - Name of the app definition (the OIN catalog app key name) (required)
      appId - Application ID (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • unassignAppTargetToAdminRoleForGroup

      public void unassignAppTargetToAdminRoleForGroup(String groupId, String roleAssignmentId, String appName) throws ApiException
      Unassign a group role app target Unassigns an OIN app target from an `APP_ADMIN` role assignment to a group > **Note:** You can't remove the last app target from a role assignment. > If you need a role assignment that applies to all apps, delete the `APP_ADMIN` role assignment with the target and create another one. See [Unassign a group role](/openapi/okta-management/management/tag/RoleAssignmentBGroup/#tag/RoleAssignmentBGroup/operation/unassignRoleFromGroup).
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      appName - Name of the app definition (the OIN catalog app key name) (required)
      Throws:
      ApiException - if fails to make API call
    • unassignAppTargetToAdminRoleForGroup

      public void unassignAppTargetToAdminRoleForGroup(String groupId, String roleAssignmentId, String appName, Map<String,String> additionalHeaders) throws ApiException
      Unassign a group role app target Unassigns an OIN app target from an `APP_ADMIN` role assignment to a group > **Note:** You can't remove the last app target from a role assignment. > If you need a role assignment that applies to all apps, delete the `APP_ADMIN` role assignment with the target and create another one. See [Unassign a group role](/openapi/okta-management/management/tag/RoleAssignmentBGroup/#tag/RoleAssignmentBGroup/operation/unassignRoleFromGroup).
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      appName - Name of the app definition (the OIN catalog app key name) (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • unassignGroupTargetFromGroupAdminRole

      public void unassignGroupTargetFromGroupAdminRole(String groupId, String roleAssignmentId, String targetGroupId) throws ApiException
      Unassign a group role group target Unassigns a group target from a [`USER_ADMIN`](/openapi/okta-management/guides/roles/#standard-roles), `HELP_DESK_ADMIN`, or `GROUP_MEMBERSHIP_ADMIN` role assignment to a group.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      targetGroupId - (required)
      Throws:
      ApiException - if fails to make API call
    • unassignGroupTargetFromGroupAdminRole

      public void unassignGroupTargetFromGroupAdminRole(String groupId, String roleAssignmentId, String targetGroupId, Map<String,String> additionalHeaders) throws ApiException
      Unassign a group role group target Unassigns a group target from a [`USER_ADMIN`](/openapi/okta-management/guides/roles/#standard-roles), `HELP_DESK_ADMIN`, or `GROUP_MEMBERSHIP_ADMIN` role assignment to a group.
      Parameters:
      groupId - The `id` of the group (required)
      roleAssignmentId - The `id` of the role assignment (required)
      targetGroupId - (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • getObjectMapper

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