When Service Desk Manager has the multi-tenancy option set to "setup" and the tenant for a contact is set, the tenant for that contact cannot be changed using the web interface. However, the tenant for the contact can be changed by following the steps in this technical document.
Follow these steps to change the contact's tenant:
- Copy the file, settenant.xml, from the $NX_ROOT\samples\multi_tenancy directory to the $NX_ROOT\site\cfg directory, or if the file already exists in $NX_ROOT\site\cfg, use it in the proceeding steps.
- Ensure that the file, settenant.xsd, exists in the $NX_ROOT\site\cfg directory. If it does not, copy it from the $NX_ROOT\samples\multi_tenancy directory to the $NX_ROOT\site\cfg directory.
- Edit the file, $NX_ROOT\site\cfg\settenant.xml.
- Add an object definition to the settenant.xml file that corresponds to the contact for which you want to change the tenant using the following format:
In the above definition, "userid" is the logon ID of the contact, and "name-tenant" is the tenant name.
Be sure to add the object definition before the line containing the statement: </Set Tenant>
- Change the tenant name in the object definition in the settenant.xml file to the new tenant name. Save the file.
The shaded area in Figure 1 below is a sample object definition for changing the tenant of a contact named "analyst2test" with a User ID of "analyst2" from "tenant1" to "tenant2".
- From a command prompt, navigate to the $NX_ROOT\site\cfg directory and issue:
pdm_settenant -f settenant.xml
See figure 2 below for sample output.
- Log into the web interface and confirm the contact now belongs to the new tenant.
Note: $NX_ROOT represents the Service Desk Installation directory. On Windows, this directory defaults to "C:\Program Files\CA\Service Desk Manager".