:doc:`AppStream <../../appstream>` / Client / enable_user

***********
enable_user
***********



.. py:method:: AppStream.Client.enable_user(**kwargs)

  

  Enables a user in the user pool. After being enabled, users can sign in to WorkSpaces Applications and open applications from the stacks to which they are assigned.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EnableUser>`_  


  **Request Syntax**
  ::

    response = client.enable_user(
        UserName='string',
        AuthenticationType='API'|'SAML'|'USERPOOL'|'AWS_AD'
    )
    
  :type UserName: string
  :param UserName: **[REQUIRED]** 

    The email address of the user.

     

    .. note::

      

      Users' email addresses are case-sensitive. During login, if they specify an email address that doesn't use the same capitalization as the email address specified when their user pool account was created, a "user does not exist" error message displays.

      

    

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

    The authentication type for the user. You must specify USERPOOL.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`AppStream.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`AppStream.Client.exceptions.InvalidAccountStatusException`

  