@profiler.trace
def add_domain_user_role(request, user, role, domain):
 manager = keystoneclient(request, admin=True).roles
 return manager.grant(role, user=user, domain=domain)

@ profiler . trace def add_domain_user_role ( request , user , role , domain ) : manager = keystoneclient ( request , admin = True ) . roles return manager . grant ( role , user = user , domain = domain )
adds a role for a user on a domain .