Configuring Office 365™ Integration

Before you can use Office 365™ to create and edit Documents and Media files, you must configure Liferay DXP to connect with an application in the Azure portal.

Register an Application with the Microsoft Identity Platform

First, configure your application with the Microsoft identity platform™. To do so, follow the steps described in Microsoft’s documentation.

To construct a URL for the Redirect URI parameter, follow this pattern:


Here’s the minimum permission set needed to use Office 365™ integration:

  • Files.Read.All
  • Files.ReadWrite.All

For more information about permissions, see Microsoft’s documentation.

Configuring Liferay DXP

Now you must connect your Liferay DXP installation with your Microsoft identity platform™ application. You can do this at two scopes:

  1. Globally, for all instances in your Liferay DXP installation.
  2. At the instance scope, for one or more instances in your Liferay DXP installation.

You can override the global configuration for one or more instances by configuring those instances separately. Similarly, you can configure only the instances you want to connect to your application and leave the global configuration empty.

Follow these steps to configure your Liferay DXP installation to connect to your application:

  1. Note that the configuration options are the same in the global and instance-level configurations.

    To access the global configuration, go to Control PanelConfigurationSystem SettingsDocuments and Media.

    To access the instance-level configuration, go to Control PanelConfigurationInstance SettingsDocuments and Media.

  2. Under VIRTUAL INSTANCE SCOPE, select OneDrive.

  3. Enter your application’s OAuth 2 client ID and client secret in the Client ID and Client Secret fields, respectively.

  4. Enter your tenant ID in the Tenant field. To find your tenant ID, see Microsoft’s documentation.

  5. Click Save.

Figure 1: Enter your applications client ID, client secret, and tenant.

Figure 1: Enter your application's client ID, client secret, and tenant.

« Integration with Microsoft Office 365™Creating and Editing Documents and Media Files with Office 365™ »