Get user id from the profile id that is passed