Create a common util class for User related functions.

GCP-10160 and GCP-10161

Reviewer: Daniel Jao