Class GroupOwnerApi

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

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

    • GroupOwnerApi

      public GroupOwnerApi()
    • GroupOwnerApi

      public GroupOwnerApi(ApiClient apiClient)
  • Method Details

    • getApiClient

      public ApiClient getApiClient()
    • setApiClient

      public void setApiClient(ApiClient apiClient)
    • assignGroupOwner

      public GroupOwner assignGroupOwner(String groupId, AssignGroupOwnerRequestBody assignGroupOwnerRequestBody) throws ApiException
      Assign a group owner Assigns a group owner
      Parameters:
      groupId - The `id` of the group (required)
      assignGroupOwnerRequestBody - (required)
      Returns:
      GroupOwner
      Throws:
      ApiException - if fails to make API call
    • assignGroupOwner

      public GroupOwner assignGroupOwner(String groupId, AssignGroupOwnerRequestBody assignGroupOwnerRequestBody, Map<String,String> additionalHeaders) throws ApiException
      Assign a group owner Assigns a group owner
      Parameters:
      groupId - The `id` of the group (required)
      assignGroupOwnerRequestBody - (required)
      additionalHeaders - additionalHeaders for this call
      Returns:
      GroupOwner
      Throws:
      ApiException - if fails to make API call
    • deleteGroupOwner

      public void deleteGroupOwner(String groupId, String ownerId) throws ApiException
      Delete a group owner Deletes a group owner from a specific group
      Parameters:
      groupId - The `id` of the group (required)
      ownerId - The `id` of the group owner (required)
      Throws:
      ApiException - if fails to make API call
    • deleteGroupOwner

      public void deleteGroupOwner(String groupId, String ownerId, Map<String,String> additionalHeaders) throws ApiException
      Delete a group owner Deletes a group owner from a specific group
      Parameters:
      groupId - The `id` of the group (required)
      ownerId - The `id` of the group owner (required)
      additionalHeaders - additionalHeaders for this call
      Throws:
      ApiException - if fails to make API call
    • listGroupOwners

      public List<GroupOwner> listGroupOwners(String groupId, String search, String after, Integer limit) throws ApiException
      List all group owners Lists all owners for a specific group
      Parameters:
      groupId - The `id` of the group (required)
      search - SCIM filter expression for group owners. Allows you to filter owners by type. (optional)
      after - Specifies the pagination cursor for the next page of owners (optional)
      limit - Specifies the number of owner results in a page (optional, default to 1000)
      Returns:
      List<GroupOwner>
      Throws:
      ApiException - if fails to make API call
    • listGroupOwners

      public List<GroupOwner> listGroupOwners(String groupId, String search, String after, Integer limit, Map<String,String> additionalHeaders) throws ApiException
      List all group owners Lists all owners for a specific group
      Parameters:
      groupId - The `id` of the group (required)
      search - SCIM filter expression for group owners. Allows you to filter owners by type. (optional)
      after - Specifies the pagination cursor for the next page of owners (optional)
      limit - Specifies the number of owner results in a page (optional, default to 1000)
      additionalHeaders - additionalHeaders for this call
      Returns:
      List<GroupOwner>
      Throws:
      ApiException - if fails to make API call
    • listGroupOwnersPaged

      public Iterable<GroupOwner> listGroupOwnersPaged(String groupId, String search, String after, Integer limit)
      List all group owners (Paginated) Lists all owners for a specific group 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)
      search - SCIM filter expression for group owners. Allows you to filter owners by type. (optional)
      after - Specifies the pagination cursor for the next page of owners (optional)
      limit - Specifies the number of owner results in a page (optional, default to 1000)
      Returns:
      Iterable<GroupOwner> lazy iterable over all pages
    • listGroupOwnersPaged

      public Iterable<GroupOwner> listGroupOwnersPaged(String groupId, String search, String after, Integer limit, Map<String,String> additionalHeaders)
      List all group owners (Paginated with additional headers) Lists all owners for a specific group 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)
      search - SCIM filter expression for group owners. Allows you to filter owners by type. (optional)
      after - Specifies the pagination cursor for the next page of owners (optional)
      limit - Specifies the number of owner results in a page (optional, default to 1000)
      additionalHeaders - additional headers for this call
      Returns:
      Iterable<GroupOwner> lazy iterable over all pages
    • getObjectMapper

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