def add_tenant_user_role(request, project=None, user=None, role=None,
                         group=None, domain=None):
    manager = keystoneclient(request, admin=True).roles
    if VERSIONS.active < 3:
        return manager.add_user_role(user, role, project)
    else:
        return manager.grant(role, user=user, project=project,
                             group=group, domain=domain)
After a client-initiated rekey is completed, application data continues
dataset/ETHPy150Open Havate/havate-openstack/proto-build/gui/horizon/Horizon_GUI/openstack_dashboard/api/keystone.py/add_tenant_user_role--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/conch/test/test_conch.py/RekeyTestsMixin.test_clientRekey