code: def add_user_entitlement(self, user_entitlement):
          
          content = self._serialize.body(user_entitlement, 'UserEntitlement')
          response = self._send(http_method='POST',
                                location_id='387f832c-dbf2-4643-88e9-c1aa94dbb737',
                                version='5.0-preview.2',
                                content=content)
          return self._deserialize('UserEntitlementsPostResponse', response)
docs: AddUserEntitlement.
          [Preview API] Add a user, assign license and extensions and make them a member of a project group in an account.
          :param :class:`<UserEntitlement> <azure.devops.v5_0.member_entitlement_management.models.UserEntitlement>` user_entitlement: UserEntitlement object specifying License, Extensions and Project/Team groups the user should be added to.
          :rtype: :class:`<UserEntitlementsPostResponse> <azure.devops.v5_0.member_entitlement_management.models.UserEntitlementsPostResponse>`