Skip to main content

account_assignments_for_principals

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

Overview

Nameaccount_assignments_for_principals
TypeResource
Idaws.sso_admin.account_assignments_for_principals

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
account_idstringThe account ID number of the Amazon Web Services account. (pattern: <code>\d{12}</code>)
permission_set_arnstringThe ARN of the IAM Identity Center permission set assigned to this principal for this Amazon Web Services account. (pattern: <code>arn:aws(-[a-z]{1,5}){0,3}:sso:::permissionSet/(sso)?ins-[a-zA-Z0-9-.]{16}/ps-[a-zA-Z0-9-./]{16}</code>)
principal_idstringThe ID of the principal. (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. (USER, GROUP)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_account_assignments_for_principalselectregionRetrieves a list of the IAM Identity Center associated Amazon Web Services accounts that the principal has access to. This action must be called from the management account containing your organization instance of IAM Identity Center. This action is not valid for account instances of IAM Identity Center.

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 list of the IAM Identity Center associated Amazon Web Services accounts that the principal has access to. This action must be called from the management account containing your organization instance of IAM Identity Center. This action is not valid for account instances of IAM Identity Center.

SELECT
account_id,
permission_set_arn,
principal_id,
principal_type
FROM aws.sso_admin.account_assignments_for_principals
WHERE region = '{{ region }}' -- required
;