Creating a SharePoint Application

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:

  1. Go to your SharePoint installation’s URL: https://[your-site-name]

  2. 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., localhost:8228)
    • Redirect URL: The application’s URL. The URL must use HTTPS.
  3. Click the two Generate buttons to generate a client ID and client secret for Liferay DXP.

    Here’s an example configuration:

    • Client ID: 1234a56b-7890-1234-5ccc-67d8ea9b0c1c
    • Client Secret: 1ABCDEfGh2IJKLmNoP3QrStuvwX41YzAB+CDEFg20G3=
    • Title: My Application's Title
    • App Domain: localhost:8228
    • Redirect URL: https://localhost:8228/c/document_library/sharepoint/oauth2
  4. Now you must grant Liferay DXP write and search permissions over the SharePoint instance. Other permissions are ignored. Go to https://[your-site-name]

    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:

  5. Once you provide the permissions XML, click Create.

  6. Next, go to SettingsSite App Permissions in your SharePoint installation. You can also access this page directly with a URL similar to this: https://[your-site-name] 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.

« Using a SharePoint RepositoryCreating a New SharePoint Repository Configuration »
Este artigo foi útil?
Utilizadores que acharam útil: 0 de 0