File: //www/exchange0old/cmws/samples/client-org-role-delete.php
<?php
/* required includes */
require_once("../../exchange/Bin/constants.php");
require_once("../../exchange/Bin/init.php");
require_once(ROOT_FOLDER."Bin/Security.php");
require_once(ROOT_FOLDER."admin/classes/Model/base_actions.php");
require_once(ROOT_FOLDER."admin/classes/Model/CMSync.php");
/* TEST CUSTOM ROLE MAPPING DATA */
$customRoleMappingData = array(
"exchange_ref_id" => "12207000044",
"mapping_type" => 99);
$cmSync = new CMSync();
if (!$cmSync->cmSyncOrgEnable) {
exit;
}
/* Test Deleting Role Mapping */
$cmSync->setMappingRoleData($customRoleMappingData);
$stat = $cmSync->doDeleteRoleMapping($customRoleMappingData["exchange_ref_id"]);
if ($stat) {
$cmSync->printResponse();
} else {
echo $cmSync->getErrorMessage();
}