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

************************************
list_iam_policy_assignments_for_user
************************************



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

  

  Lists all of the IAM policy assignments, including the Amazon Resource Names (ARNs), for the IAM policies assigned to the specified user and group, or groups that the user belongs to.

  

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


  **Request Syntax**
  ::

    response = client.list_iam_policy_assignments_for_user(
        AwsAccountId='string',
        UserName='string',
        NextToken='string',
        MaxResults=123,
        Namespace='string'
    )
    
  :type AwsAccountId: string
  :param AwsAccountId: **[REQUIRED]** 

    The ID of the Amazon Web Services account that contains the assignments.

    

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

    The name of the user.

    

  
  :type NextToken: string
  :param NextToken: 

    The token for the next set of results, or null if there are no more results.

    

  
  :type MaxResults: integer
  :param MaxResults: 

    The maximum number of results to be returned per request.

    

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

    The namespace of the assignment.

    

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

    
    ::

      {
          'ActiveAssignments': [
              {
                  'AssignmentName': 'string',
                  'PolicyArn': 'string'
              },
          ],
          'RequestId': 'string',
          'NextToken': 'string',
          'Status': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **ActiveAssignments** *(list) --* 

        The active assignments for this user.

        
        

        - *(dict) --* 

          The active Identity and Access Management (IAM) policy assignment.

          
          

          - **AssignmentName** *(string) --* 

            A name for the IAM policy assignment.

            
          

          - **PolicyArn** *(string) --* 

            The Amazon Resource Name (ARN) of the resource.

            
      
    
      

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

        The Amazon Web Services request ID for this operation.

        
      

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

        The token for the next set of results, or null if there are no more results.

        
      

      - **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.ResourceExistsException`

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

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

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

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

  