:doc:`QuickSight <../../quicksight>` / Client / list_role_memberships

*********************
list_role_memberships
*********************



.. py:method:: QuickSight.Client.list_role_memberships(**kwargs)

  

  Lists all groups that are associated with a role.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/quicksight-2018-04-01/ListRoleMemberships>`_  


  **Request Syntax**
  ::

    response = client.list_role_memberships(
        Role='ADMIN'|'AUTHOR'|'READER'|'ADMIN_PRO'|'AUTHOR_PRO'|'READER_PRO',
        NextToken='string',
        MaxResults=123,
        AwsAccountId='string',
        Namespace='string'
    )
    
  :type Role: string
  :param Role: **[REQUIRED]** 

    The name of the role.

    

  
  :type NextToken: string
  :param NextToken: 

    A pagination token that can be used in a subsequent request.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to return.

    

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

    The ID for the Amazon Web Services account that you want to create a group in. The Amazon Web Services account ID that you provide must be the same Amazon Web Services account that contains your Amazon Quick Sight account.

    

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

    The namespace that includes the role.

    

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

    
    ::

      {
          'MembersList': [
              'string',
          ],
          'NextToken': 'string',
          'RequestId': 'string',
          'Status': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **MembersList** *(list) --* 

        The list of groups associated with a role

        
        

        - *(string) --* 
    
      

      - **NextToken** *(string) --* 

        A pagination token that can be used in a subsequent request.

        
      

      - **RequestId** *(string) --* 

        The Amazon Web Services request ID for this operation.

        
      

      - **Status** *(integer) --* 

        The HTTP status of the request.

        
  
  **Exceptions**
  
  *   :py:class:`QuickSight.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`QuickSight.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`QuickSight.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`QuickSight.Client.exceptions.ThrottlingException`

  
  *   :py:class:`QuickSight.Client.exceptions.InvalidNextTokenException`

  
  *   :py:class:`QuickSight.Client.exceptions.PreconditionNotMetException`

  
  *   :py:class:`QuickSight.Client.exceptions.LimitExceededException`

  
  *   :py:class:`QuickSight.Client.exceptions.InternalFailureException`

  
  *   :py:class:`QuickSight.Client.exceptions.ResourceUnavailableException`

  