(Dansk version)


Introduction

This guide describes how to set up an App Registration in Microsoft Entra ID so DocuNote can publish documents to SharePoint Online.


Purpose

The external publishing module supports SharePoint Online with modern authentication. Users can now publish, republish, and unpublish documents to SharePoint Online. This integration requires an Azure App Registration with proper permissions.

To use SharePoint Online publishing, an Azure App Registration must be created with the following delegated permissions (scopes) for Microsoft Graph.

image.png

Step 1 - Register a new application

  1. Go to Entra ID > App registrations
  2. Click + New registration
  3. Fill in the following:
  4. Click Register

image.png


Step 2 - Add the redirect URI

  1. In the newly created App Registration, go to Authentication in the left menu
  2. Click + Add Redirect URI
  3. Select the platform Mobile and desktop applications
  4. Enter the redirect URI:
https://login.microsoftonline.com/common/oauth2/nativeclient
  1. Save the configuration

image.png


Step 3 - Configure API permissions

  1. Go to API permissions in the left menu
  2. Click + Add a permission > Microsoft Graph > Delegated permissions and add the following:
Permission Type Description
Files.ReadWrite.All Delegated Have full access to all files user can access
offline_access Delegated Maintain access to data you have given it access to
openid Delegated Sign users in
profile Delegated View users' basic profile
Sites.Read.All Delegated Read items in all site collections
User.Read Delegated Sign in and read user profile
  1. Click Grant admin consent for [Your Tenant Name]
  2. Confirm with Yes
  3. Check that every permission shows a green checkmark in the Status column

image.png


Step 4 - Copy the Application (client) ID

  1. Go to Overview in the left menu
  2. Copy the Application (client) ID

image.png

<aside> ⚠️

This App ID is what DocuNote needs. Enter it in the SharePoint external publishing setup in DocuNote, otherwise DocuNote cannot sign in to SharePoint Online.

</aside>