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="2024-09-23T08:35:59.300824-05:00[America/Chicago]",
comments="Generator version: 7.8.0")
public class ApplicationGroupsApi
extends Object
-
Constructor Summary
-
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.ObjectMapper
List 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 assignmentsvoid
setApiClient
(ApiClient apiClient) void
unassignApplicationFromGroup
(String appId, String groupId) Unassign an Application Group Unassigns a Group from an appvoid
Unassign 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](/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](/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](/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](/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
-
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()
-