Package com.okta.sdk.resource.api
Class RoleAssignmentApi
java.lang.Object
com.okta.sdk.resource.api.RoleAssignmentApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-08-09T14:19:33.269913-05:00[America/Chicago]",
comments="Generator version: 7.7.0")
public class RoleAssignmentApi
extends Object
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionassignRoleToClient
(String clientId, AssignRoleToClientRequest assignRoleToClientRequest) Assign Role to Client Assigns a Role to a ClientassignRoleToClient
(String clientId, AssignRoleToClientRequest assignRoleToClientRequest, Map<String, String> additionalHeaders) Assign Role to Client Assigns a Role to a ClientassignRoleToGroup
(String groupId, AssignRoleRequest assignRoleRequest, Boolean disableNotifications) Assign a Role to a Group Assigns a role to a groupassignRoleToGroup
(String groupId, AssignRoleRequest assignRoleRequest, Boolean disableNotifications, Map<String, String> additionalHeaders) Assign a Role to a Group Assigns a role to a groupassignRoleToUser
(String userId, AssignRoleRequest assignRoleRequest, Boolean disableNotifications) Assign a Role to a User Assigns a role to a user identified by `userId`assignRoleToUser
(String userId, AssignRoleRequest assignRoleRequest, Boolean disableNotifications, Map<String, String> additionalHeaders) Assign a Role to a User Assigns a role to a user identified by `userId`void
deleteRoleFromClient
(String clientId, String roleId) Unassign a Role from a Client Unassigns a Role from a Clientvoid
Unassign a Role from a Client Unassigns a Role from a ClientgetGroupAssignedRole
(String groupId, String roleId) Retrieve a Role assigned to Group Retrieves a role identified by `roleId` assigned to group identified by `groupId`Retrieve a Role assigned to Group Retrieves a role identified by `roleId` assigned to group identified by `groupId`protected static com.fasterxml.jackson.databind.ObjectMapper
getUserAssignedRole
(String userId, String roleId) Retrieve a Role assigned to a User Retrieves a role identified by `roleId` assigned to a user identified by `userId`Retrieve a Role assigned to a User Retrieves a role identified by `roleId` assigned to a user identified by `userId`listAssignedRolesForUser
(String userId, String expand) List all Roles assigned to a User Lists all roles assigned to a user identified by `userId`List all Roles assigned to a User Lists all roles assigned to a user identified by `userId`listGroupAssignedRoles
(String groupId, String expand) List all Assigned Roles of Group Lists all assigned roles of group identified by `groupId`List all Assigned Roles of Group Lists all assigned roles of group identified by `groupId`listRolesForClient
(String clientId) List all Roles for a Client Lists all Roles by `clientId`listRolesForClient
(String clientId, Map<String, String> additionalHeaders) List all Roles for a Client Lists all Roles by `clientId`listUsersWithRoleAssignments
(String after, Integer limit) List all Users with Role Assignments Lists all users with Role AssignmentsList all Users with Role Assignments Lists all users with Role AssignmentsretrieveClientRole
(String clientId, String roleId) Retrieve a Client Role Retrieves a Client RoleRetrieve a Client Role Retrieves a Client Rolevoid
setApiClient
(ApiClient apiClient) void
unassignRoleFromGroup
(String groupId, String roleId) Unassign a Role from a Group Unassigns a role identified by `roleId` assigned to group identified by `groupId`void
Unassign a Role from a Group Unassigns a role identified by `roleId` assigned to group identified by `groupId`void
unassignRoleFromUser
(String userId, String roleId) Unassign a Role from a User Unassigns a role identified by `roleId` from a user identified by `userId`void
Unassign a Role from a User Unassigns a role identified by `roleId` from a user identified by `userId`
-
Constructor Details
-
RoleAssignmentApi
public RoleAssignmentApi() -
RoleAssignmentApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
assignRoleToClient
public Client assignRoleToClient(String clientId, AssignRoleToClientRequest assignRoleToClientRequest) throws ApiException Assign Role to Client Assigns a Role to a Client- Parameters:
clientId
- `client_id` of the app (required)assignRoleToClientRequest
- (required)- Returns:
- Client
- Throws:
ApiException
- if fails to make API call
-
assignRoleToClient
public Client assignRoleToClient(String clientId, AssignRoleToClientRequest assignRoleToClientRequest, Map<String, String> additionalHeaders) throws ApiExceptionAssign Role to Client Assigns a Role to a Client- Parameters:
clientId
- `client_id` of the app (required)assignRoleToClientRequest
- (required)additionalHeaders
- additionalHeaders for this call- Returns:
- Client
- Throws:
ApiException
- if fails to make API call
-
assignRoleToGroup
public Role assignRoleToGroup(String groupId, AssignRoleRequest assignRoleRequest, Boolean disableNotifications) throws ApiException Assign a Role to a Group Assigns a role to a group- Parameters:
groupId
- The `id` of the group (required)assignRoleRequest
- (required)disableNotifications
- Setting this to `true` grants the group third-party admin status (optional)- Returns:
- Role
- Throws:
ApiException
- if fails to make API call
-
assignRoleToGroup
public Role assignRoleToGroup(String groupId, AssignRoleRequest assignRoleRequest, Boolean disableNotifications, Map<String, String> additionalHeaders) throws ApiExceptionAssign a Role to a Group Assigns a role to a group- Parameters:
groupId
- The `id` of the group (required)assignRoleRequest
- (required)disableNotifications
- Setting this to `true` grants the group third-party admin status (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- Role
- Throws:
ApiException
- if fails to make API call
-
assignRoleToUser
public Role assignRoleToUser(String userId, AssignRoleRequest assignRoleRequest, Boolean disableNotifications) throws ApiException Assign a Role to a User Assigns a role to a user identified by `userId`- Parameters:
userId
- ID of an existing Okta user (required)assignRoleRequest
- (required)disableNotifications
- Setting this to `true` grants the user third-party admin status (optional)- Returns:
- Role
- Throws:
ApiException
- if fails to make API call
-
assignRoleToUser
public Role assignRoleToUser(String userId, AssignRoleRequest assignRoleRequest, Boolean disableNotifications, Map<String, String> additionalHeaders) throws ApiExceptionAssign a Role to a User Assigns a role to a user identified by `userId`- Parameters:
userId
- ID of an existing Okta user (required)assignRoleRequest
- (required)disableNotifications
- Setting this to `true` grants the user third-party admin status (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- Role
- Throws:
ApiException
- if fails to make API call
-
deleteRoleFromClient
Unassign a Role from a Client Unassigns a Role from a Client- Parameters:
clientId
- `client_id` of the app (required)roleId
- `id` of the Role (required)- Throws:
ApiException
- if fails to make API call
-
deleteRoleFromClient
public void deleteRoleFromClient(String clientId, String roleId, Map<String, String> additionalHeaders) throws ApiExceptionUnassign a Role from a Client Unassigns a Role from a Client- Parameters:
clientId
- `client_id` of the app (required)roleId
- `id` of the Role (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getGroupAssignedRole
Retrieve a Role assigned to Group Retrieves a role identified by `roleId` assigned to group identified by `groupId`- Parameters:
groupId
- The `id` of the group (required)roleId
- `id` of the Role (required)- Returns:
- Role
- Throws:
ApiException
- if fails to make API call
-
getGroupAssignedRole
public Role getGroupAssignedRole(String groupId, String roleId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Role assigned to Group Retrieves a role identified by `roleId` assigned to group identified by `groupId`- Parameters:
groupId
- The `id` of the group (required)roleId
- `id` of the Role (required)additionalHeaders
- additionalHeaders for this call- Returns:
- Role
- Throws:
ApiException
- if fails to make API call
-
getUserAssignedRole
Retrieve a Role assigned to a User Retrieves a role identified by `roleId` assigned to a user identified by `userId`- Parameters:
userId
- ID of an existing Okta user (required)roleId
- `id` of the Role (required)- Returns:
- Role
- Throws:
ApiException
- if fails to make API call
-
getUserAssignedRole
public Role getUserAssignedRole(String userId, String roleId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Role assigned to a User Retrieves a role identified by `roleId` assigned to a user identified by `userId`- Parameters:
userId
- ID of an existing Okta user (required)roleId
- `id` of the Role (required)additionalHeaders
- additionalHeaders for this call- Returns:
- Role
- Throws:
ApiException
- if fails to make API call
-
listAssignedRolesForUser
List all Roles assigned to a User Lists all roles assigned to a user identified by `userId`- Parameters:
userId
- ID of an existing Okta user (required)expand
- (optional)- Returns:
- List<Role>
- Throws:
ApiException
- if fails to make API call
-
listAssignedRolesForUser
public List<Role> listAssignedRolesForUser(String userId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionList all Roles assigned to a User Lists all roles assigned to a user identified by `userId`- Parameters:
userId
- ID of an existing Okta user (required)expand
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- List<Role>
- Throws:
ApiException
- if fails to make API call
-
listGroupAssignedRoles
List all Assigned Roles of Group Lists all assigned roles of group identified by `groupId`- Parameters:
groupId
- The `id` of the group (required)expand
- (optional)- Returns:
- List<Role>
- Throws:
ApiException
- if fails to make API call
-
listGroupAssignedRoles
public List<Role> listGroupAssignedRoles(String groupId, String expand, Map<String, String> additionalHeaders) throws ApiExceptionList all Assigned Roles of Group Lists all assigned roles of group identified by `groupId`- Parameters:
groupId
- The `id` of the group (required)expand
- (optional)additionalHeaders
- additionalHeaders for this call- Returns:
- List<Role>
- Throws:
ApiException
- if fails to make API call
-
listRolesForClient
List all Roles for a Client Lists all Roles by `clientId`- Parameters:
clientId
- `client_id` of the app (required)- Returns:
- Client
- Throws:
ApiException
- if fails to make API call
-
listRolesForClient
public Client listRolesForClient(String clientId, Map<String, String> additionalHeaders) throws ApiExceptionList all Roles for a Client Lists all Roles by `clientId`- Parameters:
clientId
- `client_id` of the app (required)additionalHeaders
- additionalHeaders for this call- Returns:
- Client
- Throws:
ApiException
- if fails to make API call
-
listUsersWithRoleAssignments
public RoleAssignedUsers listUsersWithRoleAssignments(String after, Integer limit) throws ApiException List all Users with Role Assignments Lists all users with Role Assignments- Parameters:
after
- (optional)limit
- Specifies the number of results returned. Defaults to `100`. (optional, default to 100)- Returns:
- RoleAssignedUsers
- Throws:
ApiException
- if fails to make API call
-
listUsersWithRoleAssignments
public RoleAssignedUsers listUsersWithRoleAssignments(String after, Integer limit, Map<String, String> additionalHeaders) throws ApiExceptionList all Users with Role Assignments Lists all users with Role Assignments- Parameters:
after
- (optional)limit
- Specifies the number of results returned. Defaults to `100`. (optional, default to 100)additionalHeaders
- additionalHeaders for this call- Returns:
- RoleAssignedUsers
- Throws:
ApiException
- if fails to make API call
-
retrieveClientRole
Retrieve a Client Role Retrieves a Client Role- Parameters:
clientId
- `client_id` of the app (required)roleId
- `id` of the Role (required)- Returns:
- Client
- Throws:
ApiException
- if fails to make API call
-
retrieveClientRole
public Client retrieveClientRole(String clientId, String roleId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a Client Role Retrieves a Client Role- Parameters:
clientId
- `client_id` of the app (required)roleId
- `id` of the Role (required)additionalHeaders
- additionalHeaders for this call- Returns:
- Client
- Throws:
ApiException
- if fails to make API call
-
unassignRoleFromGroup
Unassign a Role from a Group Unassigns a role identified by `roleId` assigned to group identified by `groupId`- Parameters:
groupId
- The `id` of the group (required)roleId
- `id` of the Role (required)- Throws:
ApiException
- if fails to make API call
-
unassignRoleFromGroup
public void unassignRoleFromGroup(String groupId, String roleId, Map<String, String> additionalHeaders) throws ApiExceptionUnassign a Role from a Group Unassigns a role identified by `roleId` assigned to group identified by `groupId`- Parameters:
groupId
- The `id` of the group (required)roleId
- `id` of the Role (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
unassignRoleFromUser
Unassign a Role from a User Unassigns a role identified by `roleId` from a user identified by `userId`- Parameters:
userId
- ID of an existing Okta user (required)roleId
- `id` of the Role (required)- Throws:
ApiException
- if fails to make API call
-
unassignRoleFromUser
public void unassignRoleFromUser(String userId, String roleId, Map<String, String> additionalHeaders) throws ApiExceptionUnassign a Role from a User Unassigns a role identified by `roleId` from a user identified by `userId`- Parameters:
userId
- ID of an existing Okta user (required)roleId
- `id` of the Role (required)additionalHeaders
- additionalHeaders for this call- Throws:
ApiException
- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-