Skip to content

List Account Assignments For Principal

ssoadmin_list_account_assignments_for_principal R Documentation

Retrieves a list of the IAM Identity Center associated Amazon Web Services accounts that the principal has access to

Description

Retrieves a list of the IAM Identity Center associated Amazon Web Services accounts that the principal has access to.

Usage

ssoadmin_list_account_assignments_for_principal(Filter, InstanceArn,
  MaxResults, NextToken, PrincipalId, PrincipalType)

Arguments

Filter

Specifies an Amazon Web Services account ID number. Results are filtered to only those that match this ID number.

InstanceArn

[required] Specifies the ARN of the instance of IAM Identity Center that contains the principal.

MaxResults

Specifies the total number of results that you want included in each response. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request 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 check NextToken after every operation to ensure that you receive all of the results.

NextToken

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response 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's NextToken response to request the next page of results.

PrincipalId

[required] Specifies the principal for which you want to retrieve the list of account assignments.

PrincipalType

[required] Specifies the type of the principal.

Value

A list with the following syntax:

list(
  AccountAssignments = list(
    list(
      AccountId = "string",
      PermissionSetArn = "string",
      PrincipalId = "string",
      PrincipalType = "USER"|"GROUP"
    )
  ),
  NextToken = "string"
)

Request syntax

svc$list_account_assignments_for_principal(
  Filter = list(
    AccountId = "string"
  ),
  InstanceArn = "string",
  MaxResults = 123,
  NextToken = "string",
  PrincipalId = "string",
  PrincipalType = "USER"|"GROUP"
)