Makes possible to update user by its email instead of id.

Since email is unique it would be convenient for API users to use it instead of saving external id reference.