pass the domain from the profile to the role module