SSOAdmin / Paginator / ListAccountAssignments

ListAccountAssignments#

class SSOAdmin.Paginator.ListAccountAssignments#
paginator = client.get_paginator('list_account_assignments')
paginate(**kwargs)#

Creates an iterator that will paginate through responses from SSOAdmin.Client.list_account_assignments().

See also: AWS API Documentation

Request Syntax

response_iterator = paginator.paginate(
    AccountId='string',
    InstanceArn='string',
    PermissionSetArn='string',
    PaginationConfig={
        'MaxItems': 123,
        'PageSize': 123,
        'StartingToken': 'string'
    }
)
Parameters:
  • AccountId (string) –

    [REQUIRED]

    The identifier of the Amazon Web Services account from which to list the assignments.

  • InstanceArn (string) –

    [REQUIRED]

    The ARN of the IAM Identity Center instance under which the operation will be executed. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

  • PermissionSetArn (string) –

    [REQUIRED]

    The ARN of the permission set from which to list assignments.

  • PaginationConfig (dict) –

    A dictionary that provides parameters to control pagination.

    • MaxItems (integer) –

      The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken will be provided in the output that you can use to resume pagination.

    • PageSize (integer) –

      The size of each page.

    • StartingToken (string) –

      A token to specify where to start paginating. This is the NextToken from a previous response.

Return type:

dict

Returns:

Response Syntax

{
    'AccountAssignments': [
        {
            'AccountId': 'string',
            'PermissionSetArn': 'string',
            'PrincipalId': 'string',
            'PrincipalType': 'USER'|'GROUP'
        },
    ],

}

Response Structure

  • (dict) –

    • AccountAssignments (list) –

      The list of assignments that match the input Amazon Web Services account and permission set.

      • (dict) –

        The assignment that indicates a principal’s limited access to a specified Amazon Web Services account with a specified permission set.

        Note

        The term principal here refers to a user or group that is defined in IAM Identity Center.

        • AccountId (string) –

          The identifier of the Amazon Web Services account.

        • PermissionSetArn (string) –

          The ARN of the permission set. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces in the Amazon Web Services General Reference.

        • PrincipalId (string) –

          An 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.

        • PrincipalType (string) –

          The entity type for which the assignment will be created.