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

********************
get_flow_permissions
********************



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

  

  Get permissions for a flow.

  

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


  **Request Syntax**
  ::

    response = client.get_flow_permissions(
        AwsAccountId='string',
        FlowId='string'
    )
    
  :type AwsAccountId: string
  :param AwsAccountId: **[REQUIRED]** 

    The ID of the Amazon Web Services account that contains the flow that you are getting permissions for.

    

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

    The unique identifier of the flow to get permissions from.

    

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

    
    ::

      {
          'Arn': 'string',
          'FlowId': 'string',
          'Permissions': [
              {
                  'Actions': [
                      'string',
                  ],
                  'Principal': 'string'
              },
          ],
          'RequestId': 'string',
          'Status': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **Arn** *(string) --* 

        The Amazon Resource Name (ARN) of the flow you are getting permissions against.

        
      

      - **FlowId** *(string) --* 

        The unique identifier of the flow with permissions.

        
      

      - **Permissions** *(list) --* 

        A structure that contains the permissions for the flow.

        
        

        - *(dict) --* 

          A structure that contains the permission information for one principal against one flow.

          
          

          - **Actions** *(list) --* 

            A list of actions that the principal can perform against the flow.

             

            The following are the list of values to set a principal as a flow owner:

             

            
            * quicksight:PublishFlow
             
            * quicksight:GetFlow
             
            * quicksight:UpdateFlowPermissions
             
            * quicksight:GetFlowSession
             
            * quicksight:StartFlowSession
             
            * quicksight:StopFlowSession
             
            * quicksight:UpdateFlowSession
             
            * quicksight:UnpublishFlow
             
            * quicksight:GetFlowStages
             
            * quicksight:DeleteFlow
             
            * quicksight:DescribeFlowPermissions
             
            * quicksight:UpdateFlow
             
            * quicksight:CreatePresignedUrl
            

             

            The following are the list of values to set a principal as a flow viewer:

             

            
            * quicksight:GetFlow
             
            * quicksight:UpdateFlowSession
             
            * quicksight:StartFlowSession
             
            * quicksight:StopFlowSession
             
            * quicksight:GetFlowSession
             
            * quicksight:CreatePresignedUrl
             
            * quicksight:GetFlowStages
            

            
            

            - *(string) --* 
        
          

          - **Principal** *(string) --* 

            The Amazon Resource Name (ARN) of the principal. This can be an Amazon Quick Suite user, group or namespace associated with the flow. Namespace principal can only be set as a viewer and will grant everyone in the same namespace viewer permissions.

            
      
    
      

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

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

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

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

  