Retrieves a list of the IAM Identity Center associated Amazon Web Services accounts that the principal has access to
Source:R/ssoadmin_operations.R
ssoadmin_list_account_assignments_for_principal.RdRetrieves 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.
See https://www.paws-r-sdk.com/docs/ssoadmin_list_account_assignments_for_principal/ for full documentation.
Usage
ssoadmin_list_account_assignments_for_principal(
InstanceArn,
PrincipalId,
PrincipalType,
Filter = NULL,
NextToken = NULL,
MaxResults = NULL
)Arguments
- InstanceArn
[required] Specifies the ARN of the instance of IAM Identity Center that contains the principal.
- PrincipalId
[required] Specifies the principal for which you want to retrieve the list of account assignments.
- PrincipalType
[required] Specifies the type of the principal.
- Filter
Specifies an Amazon Web Services account ID number. Results are filtered to only those that match this ID number.
- NextToken
Specifies that you want to receive the next page of results. Valid only if you received a
NextTokenresponse in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call'sNextTokenresponse to request the next page of results.- MaxResults
Specifies the total number of results that you want included in each response. If additional items exist beyond the number you specify, the
NextTokenresponse element is returned with a value (not null). Include the specified value as theNextTokenrequest parameter in the next call to the operation to get the next set of results. Note that the service might return fewer results than the maximum even when there are more results available. You should checkNextTokenafter every operation to ensure that you receive all of the results.