integrated getUser method