Content Manager 25.1 Office Online Integration Help

# Configuring tenants and IIS

## Configuring the tenant

To configure the tenant, perform the following steps:

1. Navigate to the Content Manager install folder and go to ServiceAPI > tenants. For example, C:\Program Files\Micro Focus\Content Manager\ServiceAPI\tenants.

2. Make a copy of ServiceAPISAMPLE.sample.template template and save it. The name of the file should contain the dataset name you gave in Content Manager Enterprise Studio with a .config extension. For example, if you have a dataset registered in Content Manager Enterprise Studio as DB102_ITInfraDS, then the name of the config file will be DB102_ITInfraDS.config.

   Make sure to create a new .config file for each of your datasets.

### Editing the .config file

To edit the config file, perform the following steps:

1. Open the newly created .config file in a text editor.
2. Locate and update the <setup databaseId=""/> parameter with the dataset ID you gave in Content Manager Enterprise Studio.

3. Add the <authentication> attribute and replace the values of `clientID`, `issuerURI`, `clientSecret`, and `appIdURI` with organization specific values.

       <authentication allowAnonymous="false" slidingSessionMinutes="30">
       <openIdConnect>
       <add name="<Your own>" clientID="<Your own>" issuerURI="<Your own>" clientSecret="<Your own>" appIdURI="<Your own>" />
       </openIdConnect>
       </authentication>

4. If the following <section name> attribute is present in the .config file, comment out the attribute:

       <section name="hptrim" type="HP.HPTRIM.Web.Configuration.ServiceDefaults, HP.HPTRIM.Framework" allowLocation="true" allowDefinition="Everywhere"/>

5. Add the following new <section name> attribute:

       <section name="hptrim" type="TRIM.Web.Configuration.ServiceDefaults, TRIM.Framework" allowLocation="true" allowDefinition="Everywhere" />

6. Save the .config file and close the text editor.

   You need to repeat the above steps for each of the .config files.

## Editing the config.js file

To edit the config.js file, perform the following steps:

1. Navigate to the Content Manager install folder and go to ServiceAPI > office. For example, C:\Program Files\Micro Focus\Content Manager\ServiceAPI\office.

2. Open the config.js in a text editor and add the following <SERVICEAPI_PATHS> attribute listing the URL of the datasets:

       SERVICEAPI_PATHS: ["https://<Your own/CMServiceAPI>","https://<Your own/Dataset name>", "https://<Your own/Dataset name>"],

   For example, SERVICEAPI_PATHS: ["https://vm999.testexch.com/CMServiceAPI","https://vm999.testexch.com/DB102_ITInfraDS", "https://vm999.testexch.com/DB102_HRInfraDS", "https://vm999.testexch.com/DB102_IETeamDS"],

   You need to update this attribute whenever you add a new dataset.

## Configuring IIS

To configure IIS, perform the following steps:

1. Open the IIS Manager, right-click on Default Web Site, and select Add Application. The Add Application dialog is displayed.

2. Enter the Alias name same as the dataset name given in the Content Manager Enterprise Studio when you registered or created the dataset.
3. Enter Service API Application pool name in Application Pool, for example, CMServiceAPIAppPool.
4. Enter the Service API path in the Physical Path. For example, C:\Program Files\Micro Focus\Content Manager\Service_API.
5. Click OK to create the new application.

### Enabling authentication for the application

To enable the authentication, perform the following steps:

1. Double-click on Authentication of the newly created application.
2. Disable the Windows Authentication and Enable the Anonymous Authentication.
3. Restart the IIS server to reflect these changes.

You need to add application and enable authentication for each of the dataset.

If you are configuring Web Client for multiple datasets, you need to create separate app and enable authentication for each of the datasets. For more details, see Appendix E Multi Tenancy Configuration in Content Manager Web Client Installation and Configuration.

Copyright 2008-2025 Open Text
Version 25.1 | Last updated July 2023
Contact

Send documentation feedback

Close

Send documentation feedback

To send feedback using your default email client, open an email window.

Otherwise, send your feedback and the information below to hprmdocumentation@microfocus.com.

We appreciate your feedback!

Product: Content Manager 25.1

Topic Title: Configuring tenants and IIS