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

***********************
create_group_membership
***********************



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

  

  Adds an Amazon Quick Sight user to an Amazon Quick Sight group.

  

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


  **Request Syntax**
  ::

    response = client.create_group_membership(
        MemberName='string',
        GroupName='string',
        AwsAccountId='string',
        Namespace='string'
    )
    
  :type MemberName: string
  :param MemberName: **[REQUIRED]** 

    The name of the user that you want to add to the group membership.

    

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

    The name of the group that you want to add the user to.

    

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

    The ID for the Amazon Web Services account that the group is in. Currently, you use the ID for the Amazon Web Services account that contains your Amazon Quick Sight account.

    

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

    The namespace that you want the user to be a part of.

    

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

    
    ::

      {
          'GroupMember': {
              'Arn': 'string',
              'MemberName': 'string'
          },
          'RequestId': 'string',
          'Status': 123
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **GroupMember** *(dict) --* 

        The group member.

        
        

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

          The Amazon Resource Name (ARN) for the group member (user).

          
        

        - **MemberName** *(string) --* 

          The name of the group member (user).

          
    
      

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

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

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

  