Skip to main content

application_assignments

Creates, updates, deletes, gets or lists an application_assignments resource.

Overview

Nameapplication_assignments
TypeResource
Idaws.sso_admin.application_assignments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_arnstringSpecifies the ARN of the application. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference. (pattern: <code>arn:aws(-[a-z]{1,5}){0,3}:sso::\d{12}:application/(sso)?ins-[a-zA-Z0-9-.]{16}/apl-[a-zA-Z0-9]{16}</code>)
principal_idstringAn identifier for an object in IAM Identity Center, such as a user or group. PrincipalIds are GUIDs (For example, f81d4fae-7dec-11d0-a765-00a0c91e6bf6). For more information about PrincipalIds in IAM Identity Center, see the IAM Identity Center Identity Store API Reference. (pattern: <code>([0-9a-f]{10}-|)[A-Fa-f0-9]{8}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{4}-[A-Fa-f0-9]{12}</code>)
principal_typestringThe entity type for which the assignment will be created. (USER, GROUP)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_application_assignmentselectregionRetrieves a direct assignment of a user or group to an application. If the user doesn’t have a direct assignment to the application, the user may still have access to the application through a group. Therefore, don’t use this API to test access to an application for a user. Instead use ListApplicationAssignmentsForPrincipal.
list_application_assignmentsselectregionLists Amazon Web Services account users that are assigned to an application.
create_application_assignmentinsertregion, ApplicationArn, PrincipalId, PrincipalTypeGrant application access to a user or group.
delete_application_assignmentdeleteregionRevoke application access to an application by deleting application assignments for a user or group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves a direct assignment of a user or group to an application. If the user doesn’t have a direct assignment to the application, the user may still have access to the application through a group. Therefore, don’t use this API to test access to an application for a user. Instead use ListApplicationAssignmentsForPrincipal.

SELECT
application_arn,
principal_id,
principal_type
FROM aws.sso_admin.application_assignments
WHERE region = '{{ region }}' -- required
;

INSERT examples

Grant application access to a user or group.

INSERT INTO aws.sso_admin.application_assignments (
ApplicationArn,
PrincipalId,
PrincipalType,
region
)
SELECT
'{{ ApplicationArn }}' /* required */,
'{{ PrincipalId }}' /* required */,
'{{ PrincipalType }}' /* required */,
'{{ region }}'
;

DELETE examples

Revoke application access to an application by deleting application assignments for a user or group.

DELETE FROM aws.sso_admin.application_assignments
WHERE region = '{{ region }}' --required
;