Package com.okta.sdk.resource.api
Class RoleAssignmentBGroupApi
java.lang.Object
com.okta.sdk.resource.api.RoleAssignmentBGroupApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-09-23T16:19:57.008753975Z[Etc/UTC]",
comments="Generator version: 7.8.0")
public class RoleAssignmentBGroupApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignRoleToGroup
(String groupId, AssignRoleToGroupRequest assignRoleRequest, Boolean disableNotifications) Assign a Role to a Group Assigns a [standard role](/openapi/okta-management/guides/roles/#standard-roles) to a Group.assignRoleToGroup
(String groupId, AssignRoleToGroupRequest assignRoleRequest, Boolean disableNotifications, Map<String, String> additionalHeaders) Assign a Role to a Group Assigns a [standard role](/openapi/okta-management/guides/roles/#standard-roles) to a Group.getGroupAssignedRole
(String groupId, String roleAssignmentId) Retrieve a Group Role Assignment Retrieves a Role assigned to a Group (identified by the `groupId`).Retrieve a Group Role Assignment Retrieves a Role assigned to a Group (identified by the `groupId`).protected static com.fasterxml.jackson.databind.ObjectMapper
listGroupAssignedRoles
(String groupId, String expand) List all Group Role Assignments Lists all assigned roles of a Group by `groupId`List all Group Role Assignments Lists all assigned roles of a Group by `groupId`void
setApiClient
(ApiClient apiClient) void
unassignRoleFromGroup
(String groupId, String roleAssignmentId) Unassign a Group Role Unassigns a Role Assignment (identified by `roleAssignmentId`) from a Group (identified by the `groupId`)void
unassignRoleFromGroup
(String groupId, String roleAssignmentId, Map<String, String> additionalHeaders) Unassign a Group Role Unassigns a Role Assignment (identified by `roleAssignmentId`) from a Group (identified by the `groupId`)
-
Constructor Details
-
RoleAssignmentBGroupApi
public RoleAssignmentBGroupApi() -
RoleAssignmentBGroupApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
assignRoleToGroup
public ListGroupAssignedRoles200ResponseInner assignRoleToGroup(String groupId, AssignRoleToGroupRequest assignRoleRequest, Boolean disableNotifications) throws ApiException Assign a Role to a Group Assigns a [standard role](/openapi/okta-management/guides/roles/#standard-roles) to a Group. You can also assign a custom role to a Group, but the preferred method to assign a custom role to a Group is to create a binding between the Custom Role, the Resource Set, and the Group. See [Create a Role Resource Set Binding](/openapi/okta-management/management/tag/RoleDResourceSetBinding/#tag/RoleDResourceSetBinding/operation/createResourceSetBinding). > **Notes:** > * The request payload is different for standard and custom role assignments. > * For IAM-based standard role assignments, use the request payload for standard roles. However, the response payload for IAM-based role assignments is similar to the custom role's assignment response.- Parameters:
groupId
- The `id` of the group (required)assignRoleRequest
- (required)disableNotifications
- Grants the Group third-party admin status when set to `true` (optional, default to false)- Returns:
- ListGroupAssignedRoles200ResponseInner
- Throws:
ApiException
- if fails to make API call
-
assignRoleToGroup
public ListGroupAssignedRoles200ResponseInner assignRoleToGroup(String groupId, AssignRoleToGroupRequest assignRoleRequest, Boolean disableNotifications, Map<String, String> additionalHeaders) throws ApiExceptionAssign a Role to a Group Assigns a [standard role](/openapi/okta-management/guides/roles/#standard-roles) to a Group. You can also assign a custom role to a Group, but the preferred method to assign a custom role to a Group is to create a binding between the Custom Role, the Resource Set, and the Group. See [Create a Role Resource Set Binding](/openapi/okta-management/management/tag/RoleDResourceSetBinding/#tag/RoleDResourceSetBinding/operation/createResourceSetBinding). > **Notes:** > * The request payload is different for standard and custom role assignments. > * For IAM-based standard role assignments, use the request payload for standard roles. However, the response payload for IAM-based role assignments is similar to the custom role's assignment response.- Parameters:
groupId
- The `id` of the group (required)assignRoleRequest
- (required)disableNotifications
- Grants the Group third-party admin status when set to `true` (optional, default to false)additionalHeaders
- additionalHeaders for this call- Returns:
- ListGroupAssignedRoles200ResponseInner
- Throws:
ApiException
- if fails to make API call
-
getGroupAssignedRole
public ListGroupAssignedRoles200ResponseInner getGroupAssignedRole(String groupId, String roleAssignmentId) throws ApiException Retrieve a Group Role Assignment Retrieves a Role assigned to a Group (identified by the `groupId`). The `roleAssignmentId` is the unique identifier for either a standard role Group Assignment object or a custom role Resource Set Binding object.- Parameters:
groupId
- The `id` of the group (required)roleAssignmentId
- The `id` of the Role Assignment (required)- Returns:
- ListGroupAssignedRoles200ResponseInner
- Throws:
ApiException
- if fails to make API call
-
getGroupAssignedRole
public ListGroupAssignedRoles200ResponseInner getGroupAssignedRole(String groupId, String roleAssignmentId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Group Role Assignment Retrieves a Role assigned to a Group (identified by the `groupId`). The `roleAssignmentId` is the unique identifier for either a standard role Group Assignment object or a custom role Resource Set Binding object.- Parameters:
groupId
- The `id` of the group (required)roleAssignmentId
- The `id` of the Role Assignment (required)additionalHeaders
- additionalHeaders for this call- Returns:
- ListGroupAssignedRoles200ResponseInner
- Throws:
ApiException
- if fails to make API call
-
listGroupAssignedRoles
public List<ListGroupAssignedRoles200ResponseInner> listGroupAssignedRoles(String groupId, String expand) throws ApiException List all Group Role Assignments Lists all assigned roles of a Group by `groupId`- Parameters:
groupId
- The `id` of the group (required)expand
- An optional parameter used to return targets configured for the standard Role Assignment in the `embedded` property. Supported values: `targets/groups` or `targets/catalog/apps` (optional)- Returns:
- List<ListGroupAssignedRoles200ResponseInner>
- Throws:
ApiException
- if fails to make API call
-
listGroupAssignedRoles
public List<ListGroupAssignedRoles200ResponseInner> listGroupAssignedRoles(String groupId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionList all Group Role Assignments Lists all assigned roles of a Group by `groupId`- Parameters:
groupId
- The `id` of the group (required)expand
- An optional parameter used to return targets configured for the standard Role Assignment in the `embedded` property. Supported values: `targets/groups` or `targets/catalog/apps` (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- List<ListGroupAssignedRoles200ResponseInner>
- Throws:
ApiException
- if fails to make API call
-
unassignRoleFromGroup
Unassign a Group Role Unassigns a Role Assignment (identified by `roleAssignmentId`) from a Group (identified by the `groupId`)- Parameters:
groupId
- The `id` of the group (required)roleAssignmentId
- The `id` of the Role Assignment (required)- Throws:
ApiException
- if fails to make API call
-
unassignRoleFromGroup
public void unassignRoleFromGroup(String groupId, String roleAssignmentId, Map<String, String> additionalHeaders) throws ApiExceptionUnassign a Group Role Unassigns a Role Assignment (identified by `roleAssignmentId`) from a Group (identified by the `groupId`)- Parameters:
groupId
- The `id` of the group (required)roleAssignmentId
- The `id` of the Role Assignment (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-