Generalize getting user data