:doc:`SSOAdmin <../../sso-admin>` / Paginator / ListAccountAssignments

**********************
ListAccountAssignments
**********************



.. py:class:: SSOAdmin.Paginator.ListAccountAssignments

  ::

    
    paginator = client.get_paginator('list_account_assignments')

  
  

  .. py:method:: paginate(**kwargs)

    Creates an iterator that will paginate through responses from :py:meth:`SSOAdmin.Client.list_account_assignments`.

    See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sso-admin-2020-07-20/ListAccountAssignments>`_    


    **Request Syntax**
    ::

      response_iterator = paginator.paginate(
          InstanceArn='string',
          AccountId='string',
          PermissionSetArn='string',
          PaginationConfig={
              'MaxItems': 123,
              'PageSize': 123,
              'StartingToken': 'string'
          }
      )
      
    :type InstanceArn: string
    :param InstanceArn: **[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 </general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference*.

      

    
    :type AccountId: string
    :param AccountId: **[REQUIRED]** 

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

      

    
    :type PermissionSetArn: string
    :param PermissionSetArn: **[REQUIRED]** 

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

      

    
    :type PaginationConfig: dict
    :param PaginationConfig: 

      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.

        

      
    
    
    :rtype: dict
    :returns: 
      
      **Response Syntax**

      
      ::

        {
            'AccountAssignments': [
                {
                    'AccountId': 'string',
                    'PermissionSetArn': 'string',
                    'PrincipalType': 'USER'|'GROUP',
                    'PrincipalId': 'string'
                },
            ],
            
        }
        
      **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 </general/latest/gr/aws-arns-and-namespaces.html>`__ in the *Amazon Web Services General Reference*.

              
            

            - **PrincipalType** *(string) --* 

              The entity type for which the assignment will be created.

              
            

            - **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 </singlesignon/latest/IdentityStoreAPIReference/welcome.html>`__.

              
        
      
    