Function useUserPrincipal