def add_tenant_user_role(request, tenant_id, user_id, role_id):
 return keystoneclient(request, admin=True).roles.add_user_role(user_id, role_id, tenant_id)

def add_tenant_user_role ( request , tenant_id , user_id , role_id ) : return keystoneclient ( request , admin = True ) . roles . add_user_role ( user_id , role_id , tenant_id )
adds a role for a user on a tenant .