CassandraAdminComponentManager adminComponentManager = CassandraAdminComponentManager.getInstance();
UserRealm userRealm = adminComponentManager.getRealmForCurrentTenant();
//TODO ask the best way from security team
AuthorizationManager authorizationManager = userRealm.getAuthorizationManager();
authorizationManager.clearRoleAuthorization(role, path, ACTION_WRITE);
authorizationManager.clearRoleAuthorization(role, path, ACTION_READ);
authorizationManager.authorizeRole(role, path, ACTION_WRITE);
authorizationManager.authorizeRole(role, path, ACTION_READ);
return true;
} catch (UserStoreException e) {
throw new CassandraServerManagementException("Error during sharing a resource at path :" + path + " and" +