Package com.okta.sdk.resource.api
Class ApplicationGroupsApi
java.lang.Object
com.okta.sdk.resource.api.ApplicationGroupsApi
@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 ApplicationGroupsApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionassignGroupToApplication(String appId, String groupId, ApplicationGroupAssignment applicationGroupAssignment) Assign an application group Assigns a [Group](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/) to an app, which in turn assigns the app to each [User](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/) that belongs to the group.assignGroupToApplication(String appId, String groupId, ApplicationGroupAssignment applicationGroupAssignment, Map<String, String> additionalHeaders) Assign an application group Assigns a [Group](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/) to an app, which in turn assigns the app to each [User](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/) that belongs to the group.getApplicationGroupAssignment(String appId, String groupId, String expand) Retrieve an application group Retrieves an app group assignmentgetApplicationGroupAssignment(String appId, String groupId, String expand, Map<String, String> additionalHeaders) Retrieve an application group Retrieves an app group assignmentprotected static com.fasterxml.jackson.databind.ObjectMapperList all application groups Lists all app group assignmentslistApplicationGroupAssignments(String appId, String q, String after, Integer limit, String expand, Map<String, String> additionalHeaders) List all application groups Lists all app group assignmentslistApplicationGroupAssignmentsPaged(String appId, String q, String after, Integer limit, String expand) List all application groups (Paginated) Lists all app group assignments This method returns a lazy, paginated iterable that automatically handles pagination.listApplicationGroupAssignmentsPaged(String appId, String q, String after, Integer limit, String expand, Map<String, String> additionalHeaders) List all application groups (Paginated with additional headers) Lists all app group assignments This method returns a lazy, paginated iterable that automatically handles pagination.voidsetApiClient(ApiClient apiClient) voidunassignApplicationFromGroup(String appId, String groupId) Unassign an application group Unassigns a Group from an appvoidUnassign an application group Unassigns a Group from an appupdateGroupAssignmentToApplication(String appId, String groupId, List<JsonPatchOperation> jsonPatchOperation) Update an application group Updates a group assignment to an appupdateGroupAssignmentToApplication(String appId, String groupId, List<JsonPatchOperation> jsonPatchOperation, Map<String, String> additionalHeaders) Update an application group Updates a group assignment to an app
-
Constructor Details
-
ApplicationGroupsApi
public ApplicationGroupsApi() -
ApplicationGroupsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
assignGroupToApplication
public ApplicationGroupAssignment assignGroupToApplication(String appId, String groupId, ApplicationGroupAssignment applicationGroupAssignment) throws ApiException Assign an application group Assigns a [Group](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/) to an app, which in turn assigns the app to each [User](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/) that belongs to the group. The resulting application user [scope](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/ApplicationUsers/#tag/ApplicationUsers/operation/listApplicationUsers!c=200&path=scope&t=response) is `GROUP` since the assignment was from the group membership.- Parameters:
appId- Application ID (required)groupId- The `id` of the group (required)applicationGroupAssignment- (optional)- Returns:
- ApplicationGroupAssignment
- Throws:
ApiException- if fails to make API call
-
assignGroupToApplication
public ApplicationGroupAssignment assignGroupToApplication(String appId, String groupId, ApplicationGroupAssignment applicationGroupAssignment, Map<String, String> additionalHeaders) throws ApiExceptionAssign an application group Assigns a [Group](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/) to an app, which in turn assigns the app to each [User](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/User/) that belongs to the group. The resulting application user [scope](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/ApplicationUsers/#tag/ApplicationUsers/operation/listApplicationUsers!c=200&path=scope&t=response) is `GROUP` since the assignment was from the group membership.- Parameters:
appId- Application ID (required)groupId- The `id` of the group (required)applicationGroupAssignment- (optional)additionalHeaders- additionalHeaders for this call- Returns:
- ApplicationGroupAssignment
- Throws:
ApiException- if fails to make API call
-
getApplicationGroupAssignment
public ApplicationGroupAssignment getApplicationGroupAssignment(String appId, String groupId, String expand) throws ApiException Retrieve an application group Retrieves an app group assignment- Parameters:
appId- Application ID (required)groupId- The `id` of the group (required)expand- An optional query parameter to return the corresponding assigned [group](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/) or the group assignment metadata details in the `_embedded` property. (optional)- Returns:
- ApplicationGroupAssignment
- Throws:
ApiException- if fails to make API call
-
getApplicationGroupAssignment
public ApplicationGroupAssignment getApplicationGroupAssignment(String appId, String groupId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an application group Retrieves an app group assignment- Parameters:
appId- Application ID (required)groupId- The `id` of the group (required)expand- An optional query parameter to return the corresponding assigned [group](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/) or the group assignment metadata details in the `_embedded` property. (optional)additionalHeaders- additionalHeaders for this call- Returns:
- ApplicationGroupAssignment
- Throws:
ApiException- if fails to make API call
-
listApplicationGroupAssignments
public List<ApplicationGroupAssignment> listApplicationGroupAssignments(String appId, String q, String after, Integer limit, String expand) throws ApiException List all application groups Lists all app group assignments- Parameters:
appId- Application ID (required)q- Specifies a filter for a list of assigned groups returned based on their names. The value of `q` is matched against the group `name`. This filter only supports the `startsWith` operation that matches the `q` string against the beginning of the [group name](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/#tag/Group/operation/listGroups!c=200&path=profile/name&t=response). (optional)after- Specifies the pagination cursor for the `next` page of results. Treat this as an opaque value obtained through the next link relationship. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)limit- Specifies the number of objects to return per page. If there are multiple pages of results, the Link header contains a `next` link that you need to use as an opaque value (follow it, don't parse it). See [Pagination](/#pagination). (optional, default to 20)expand- An optional query parameter to return the corresponding assigned [group](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/) or the group assignment metadata details in the `_embedded` property. (optional)- Returns:
- List<ApplicationGroupAssignment>
- Throws:
ApiException- if fails to make API call
-
listApplicationGroupAssignments
public List<ApplicationGroupAssignment> listApplicationGroupAssignments(String appId, String q, String after, Integer limit, String expand, Map<String, String> additionalHeaders) throws ApiExceptionList all application groups Lists all app group assignments- Parameters:
appId- Application ID (required)q- Specifies a filter for a list of assigned groups returned based on their names. The value of `q` is matched against the group `name`. This filter only supports the `startsWith` operation that matches the `q` string against the beginning of the [group name](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/#tag/Group/operation/listGroups!c=200&path=profile/name&t=response). (optional)after- Specifies the pagination cursor for the `next` page of results. Treat this as an opaque value obtained through the next link relationship. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)limit- Specifies the number of objects to return per page. If there are multiple pages of results, the Link header contains a `next` link that you need to use as an opaque value (follow it, don't parse it). See [Pagination](/#pagination). (optional, default to 20)expand- An optional query parameter to return the corresponding assigned [group](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/) or the group assignment metadata details in the `_embedded` property. (optional)additionalHeaders- additionalHeaders for this call- Returns:
- List<ApplicationGroupAssignment>
- Throws:
ApiException- if fails to make API call
-
listApplicationGroupAssignmentsPaged
public Iterable<ApplicationGroupAssignment> listApplicationGroupAssignmentsPaged(String appId, String q, String after, Integer limit, String expand) List all application groups (Paginated) Lists all app group assignments 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:
appId- Application ID (required)q- Specifies a filter for a list of assigned groups returned based on their names. The value of `q` is matched against the group `name`. This filter only supports the `startsWith` operation that matches the `q` string against the beginning of the [group name](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/#tag/Group/operation/listGroups!c=200&path=profile/name&t=response). (optional)after- Specifies the pagination cursor for the `next` page of results. Treat this as an opaque value obtained through the next link relationship. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)limit- Specifies the number of objects to return per page. If there are multiple pages of results, the Link header contains a `next` link that you need to use as an opaque value (follow it, don't parse it). See [Pagination](/#pagination). (optional, default to 20)expand- An optional query parameter to return the corresponding assigned [group](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/) or the group assignment metadata details in the `_embedded` property. (optional)- Returns:
- Iterable<ApplicationGroupAssignment> lazy iterable over all pages
-
listApplicationGroupAssignmentsPaged
public Iterable<ApplicationGroupAssignment> listApplicationGroupAssignmentsPaged(String appId, String q, String after, Integer limit, String expand, Map<String, String> additionalHeaders) List all application groups (Paginated with additional headers) Lists all app group assignments This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
appId- Application ID (required)q- Specifies a filter for a list of assigned groups returned based on their names. The value of `q` is matched against the group `name`. This filter only supports the `startsWith` operation that matches the `q` string against the beginning of the [group name](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/#tag/Group/operation/listGroups!c=200&path=profile/name&t=response). (optional)after- Specifies the pagination cursor for the `next` page of results. Treat this as an opaque value obtained through the next link relationship. See [Pagination](https://developer.okta.com/docs/api/#pagination). (optional)limit- Specifies the number of objects to return per page. If there are multiple pages of results, the Link header contains a `next` link that you need to use as an opaque value (follow it, don't parse it). See [Pagination](/#pagination). (optional, default to 20)expand- An optional query parameter to return the corresponding assigned [group](https://developer.okta.com/docs/api/openapi/okta-management/management/tag/Group/) or the group assignment metadata details in the `_embedded` property. (optional)additionalHeaders- additional headers for this call- Returns:
- Iterable<ApplicationGroupAssignment> lazy iterable over all pages
-
unassignApplicationFromGroup
Unassign an application group Unassigns a Group from an app- Parameters:
appId- Application ID (required)groupId- The `id` of the group (required)- Throws:
ApiException- if fails to make API call
-
unassignApplicationFromGroup
public void unassignApplicationFromGroup(String appId, String groupId, Map<String, String> additionalHeaders) throws ApiExceptionUnassign an application group Unassigns a Group from an app- Parameters:
appId- Application ID (required)groupId- The `id` of the group (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
updateGroupAssignmentToApplication
public ApplicationGroupAssignment updateGroupAssignmentToApplication(String appId, String groupId, List<JsonPatchOperation> jsonPatchOperation) throws ApiException Update an application group Updates a group assignment to an app- Parameters:
appId- Application ID (required)groupId- The `id` of the group (required)jsonPatchOperation- (optional- Returns:
- ApplicationGroupAssignment
- Throws:
ApiException- if fails to make API call
-
updateGroupAssignmentToApplication
public ApplicationGroupAssignment updateGroupAssignmentToApplication(String appId, String groupId, List<JsonPatchOperation> jsonPatchOperation, Map<String, String> additionalHeaders) throws ApiExceptionUpdate an application group Updates a group assignment to an app- Parameters:
appId- Application ID (required)groupId- The `id` of the group (required)jsonPatchOperation- (optionaladditionalHeaders- additionalHeaders for this call- Returns:
- ApplicationGroupAssignment
- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-