Skip to main content

application_assignments_for_principals

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

Overview

Nameapplication_assignments_for_principals
TypeResource
Idaws.sso_admin.application_assignments_for_principals

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_arnstringThe ARN of the application to which the specified principal is assigned. (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_idstringThe unique identifier of the principal assigned to the application. (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 type of the principal assigned to the application. (USER, GROUP)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_application_assignments_for_principalselectregionLists the applications to which a specified principal is assigned. You must provide a filter when calling this action from a member account against your organization instance of IAM Identity Center. A filter is not required when called from the management account against an organization instance of IAM Identity Center, or from a member account against an account instance of IAM Identity Center in the same account.

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

Lists the applications to which a specified principal is assigned. You must provide a filter when calling this action from a member account against your organization instance of IAM Identity Center. A filter is not required when called from the management account against an organization instance of IAM Identity Center, or from a member account against an account instance of IAM Identity Center in the same account.

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