Configuring multitenancy
Before you begin
- Configure multitenancy in BMC Remedy ITSM.
For information about multitenancy, see Multi-tenancy in the BMC Remedy ITSM documentation. - Locate the tenant configuration utility in DWP_HOME\DWP\tenant-config\scripts.
To prepare the tenant configuration utility
- On the BMC Digital Workplace server, move the tenant-config.jar from DWP_HOME/tenant-config to a folder with scripts:
- (Linux) DWP_HOME/tenant-config/scripts/linux
- (Windows) DWP_HOME\tenant-config\scripts\win
- (Optional) To run the tenant configuration utility on a server other than the BMC Digital Workplace server, copy the scripts/linux or scripts/win folders from the BMC Digital Workplace server to the server that will run the utility.
In a text editor, edit the set_env.bat (Windows) or set_env.sh (Linux) to set the following parameters:
Parameter
Value
Additional information
java_homePath to your Java directory
Do not include the bin directory at the end of the path. Enclose the path in double quotes, as in the example provided in the file.
myit_server_urlA URL that has the following format: http://DigitalWorkplaceServer/dwp
DigitalWorkplaceServer must be the host name of the BMC Digital Workplace server. If you want to run the tenant configuration utility from the BMC Digital Workplace server, you can enter localhost, as in http://localhost:port/dwp, where port is the BMC Digital Workplace server Tomcat port.
API_TOKENAPI token value
Copy the API_token value from the connect-dwp.properties file in the TomcatHome/external_conf directory.
Note: On fresh installation or upgrade, this value is automatically generated and populated in the file.
API_SECRETAPI secret value
Copy the API_secret from the connect-dwp.properties file in the TomcatHome/external_conf directory.
Note: This value is automatically generated and populated in the file after a fresh installation or upgrade.
tenant_nameTenant identifier required for tenant operations
Default value: 000000000000001
master_tenant_nameMaster tenant configuration details are copied during creation of a subtenant
Default value: 000000000000001
companyCompany identifier of a subtenant
Not applicable
SAML_authenticationTrue or False
Must be set (to True or False) before a tenant or subtenant is added.
To test the utility, run the following command:
(Windows) list_tenants.bat
(Linux) list_tenants.shYou should see a default tenant with the name 000000000000001.
To activate the master tenant
As a database administrator, run the following SQL statement:
UPDATE DWP_SYSTEM.Tenant SET HOSTNAME = 'localhost;@Company:<Master Tenant Company>' WHERE HOSTNAME='localhost';Replace <Master Tenant Company> with the company name for the master tenant company, such as Calbro Services, for example:
UPDATE DWP_SYSTEM.Tenant SET HOSTNAME = 'localhost;@Company:Calbro Services' WHERE HOSTNAME='localhost';
To activate subtenants
- In the tenant configuration utility directory, edit set_env.sh (Linux) or set_env.bat (Windows) with a text editor, and set the company to the name of the BMC Remedy ITSM operating or customer company that you are activating.
- (Linux) Find the line that says COMPANY="" and put the company name inside the quotes, for example, COMPANY="Acme".
- (Windows) Find the line set company= and add the company name to the end after the equals sign (=), for example, set company=Acme.
- Run add_subtenant.sh (Linux) or add_subtenant.bat (Windows).
Repeat step 1 and 2 for each company you want to activate.
Where to go from here
After the master tenant is configured and one or more subtenants are activated, as a BMC Digital Workplace super administrator or administrator of subtenant, log on to the BMC Digital Workplace Admin console to set up configuration data for a subtenant, as described in the Administering topics. You can also configure a different set of features for a subtenant as described in the Configuration-example-of-replacing-the-Request-Entry-Console-in-BMC-Service-Request-Management section.
If you are rebranding BMC Digital Workplace, you must rebrand it for each subtenant, as described in Rebranding-BMC-Digital-Workplace.