The steps covered in this section apply to SharePoint Online. If you’re using SharePoint On-Premises, please consult your administrator for the requirements.
Follow these steps to register Liferay DXP as an application in a SharePoint instance:
Go to your SharePoint installation’s URL:
Provide the information below for your app:
- Title: The name displayed in Documents and Media.
- Domain Name: The application’s domain name along with the port (e.g.,
- Redirect URL: The application’s URL. The URL must use HTTPS.
Click the two Generate buttons to generate a client ID and client secret for Liferay DXP.
Here’s an example configuration:
- Client ID:
- Client Secret:
My Application's Title
- App Domain:
- Redirect URL:
- Client ID:
Now you must grant Liferay DXP write and search permissions over the SharePoint instance. Other permissions are ignored. Go to
In the APP ID field, enter the Client ID of the application you just created and click Search. Consult Microsoft’s documentation for details on how to configure the Permission Request XML. Here’s an example configuration that grants the application write and search permissions over the SharePoint instance:
<AppPermissionRequests> <AppPermissionRequest scope="http://sharepoint/content/sitecollection/web/list" Right="Write" /> <AppPermissionRequest scope="http://sharepoint/search" Right="QueryAsUserIgnoreAppPrincipal" /> </AppPermissionRequests>
Once you provide the permissions XML, click Create.
Next, go to Settings → Site App Permissions in your SharePoint installation. You can also access this page directly with a URL similar to this:
https://[your-site-name].sharepoint.com/_layouts/15/appprincipals.aspx?Scope=Web. Find your application in the registration list and note its app identifier. You’ll use this to create a repository configuration. Here’s an example app identifier:
Great! Now Liferay DXP is registered as an application in your SharePoint instance. Next, you must create a new SharePoint repository type.