:doc:`Connect <../../connect>` / Client / update_user_identity_info

*************************
update_user_identity_info
*************************



.. py:method:: Connect.Client.update_user_identity_info(**kwargs)

  

  Updates the identity information for the specified user.

   

  .. warning::

     

    We strongly recommend limiting who has the ability to invoke ``UpdateUserIdentityInfo``. Someone with that ability can change the login credentials of other users by changing their email address. This poses a security risk to your organization. They can change the email address of a user to the attacker's email address, and then reset the password through email. For more information, see `Best Practices for Security Profiles <https://docs.aws.amazon.com/connect/latest/adminguide/security-profile-best-practices.html>`__ in the *Amazon Connect Administrator Guide*.

    

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/connect-2017-08-08/UpdateUserIdentityInfo>`_  


  **Request Syntax**
  ::

    response = client.update_user_identity_info(
        IdentityInfo={
            'FirstName': 'string',
            'LastName': 'string',
            'Email': 'string',
            'SecondaryEmail': 'string',
            'Mobile': 'string'
        },
        UserId='string',
        InstanceId='string'
    )
    
  :type IdentityInfo: dict
  :param IdentityInfo: **[REQUIRED]** 

    The identity information for the user.

    

  
    - **FirstName** *(string) --* 

      The first name. This is required if you are using Amazon Connect or SAML for identity management. Inputs must be in Unicode Normalization Form C (NFC). Text containing characters in a non-NFC form (for example, decomposed characters or combining marks) are not accepted.

      

    
    - **LastName** *(string) --* 

      The last name. This is required if you are using Amazon Connect or SAML for identity management. Inputs must be in Unicode Normalization Form C (NFC). Text containing characters in a non-NFC form (for example, decomposed characters or combining marks) are not accepted.

      

    
    - **Email** *(string) --* 

      The email address. If you are using SAML for identity management and include this parameter, an error is returned.

      

    
    - **SecondaryEmail** *(string) --* 

      The user's secondary email address. If you provide a secondary email, the user receives email notifications - other than password reset notifications - to this email address instead of to their primary email address.

       

      Pattern: ``(?=^.{0,265}$)[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}``

      

    
    - **Mobile** *(string) --* 

      The user's mobile number.

      

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

    The identifier of the user account.

    

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

    The identifier of the Amazon Connect instance. You can `find the instance ID <https://docs.aws.amazon.com/connect/latest/adminguide/find-instance-arn.html>`__ in the Amazon Resource Name (ARN) of the instance.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`Connect.Client.exceptions.InvalidRequestException`

  
  *   :py:class:`Connect.Client.exceptions.InvalidParameterException`

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

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

  
  *   :py:class:`Connect.Client.exceptions.InternalServiceException`

  