code: def add_domain_user_role(request, user, role, domain):
      
      manager = keystoneclient(request, admin=True).roles
      return manager.grant(role, user=user, domain=domain)
docs: Adds a role for a user on a domain.