Skip to content

Connecting to Microsoft 365

Through the connection to Microsoft 365, Docuflair can reach services such as OneDrive, SharePoint and Exchange directly. That lets you save scanned documents in SharePoint automatically or synchronise users out of the Microsoft directory, for example. Setting it up requires a one-off registration in the Microsoft Entra admin centre.

To connect Docuflair to Microsoft 365 you need credentials with sufficient permissions. The sections that follow describe how a full configuration proceeds in practice.

First register Docuflair as an application of its own with the permissions needed in each case. For that, open the Microsoft Entra admin centre in a current web browser.

Signing in to the Microsoft Entra admin centre

Once you have signed in successfully with a work, school or university account holding global administrator rights for the tenant you want, the dashboard is shown.

The dashboard of the Microsoft Entra admin centre

In the first step, register a new application. For that, navigate in the menu on the left to Applications > App registrations.

Start the registration of a new application with a click on New registration.

The overview of the app registrations

As the name for the new application, choose Docuflair, for example.

Under the supported account types, choose the third option.

Accounts in any organizational directory (Any Microsoft Entra ID tenant - Multitenant) and personal Microsoft accounts (e.g. Skype, Xbox)

You can leave the redirect URI (optional) empty at this point. Finally, click the Register button.

The form for registering the new application

The process can take a few moments. Once the registration has succeeded, the overview of the new application is shown. You need the following values

  • The application (client) ID
  • The directory (tenant) ID

later for the configuration in Docuflair Manager.

The overview of the registered application with the application and directory ID

In the next step you determine the authentication settings.

Under Allow public client flows, set the switch to Yes.

Enable the following mobile and desktop flows
o No keyboard (device code flow)

Confirm the setting with a click on Save.

The authentication settings of the application

In the next step, add new permissions under the API permissions.

The overview of the API permissions

Only permissions of the type Microsoft Graph, under the Microsoft APIs tab, are needed.

Choosing the Microsoft APIs while requesting permissions

Choose the Delegated permissions option.

Choosing the delegated permissions for Microsoft Graph

Use the search to select the permissions you want. The next section, access permissions, explains the various permissions according to how Docuflair is used.

Searching for and selecting the API permissions needed

Finally the permissions added are shown. Depending on the company’s settings, it may be necessary for admin consent for the organisation to be granted.

The overview of the API permissions added

Depending on the area of use, the following access permissions are needed:

To make it possible to print documents from OneDrive or SharePoint, the following access permissions are necessary.

Scope Description
openid Allows the user to sign in
offline_access Allows a valid sign-in token to be fetched
profile Allows the basic user profile to be viewed.
email Allows the user’s email address to be viewed.
User.Read Allows signing in and reading the basic user profile.
Files.Read, Files.Read.All Allows files to be read. Delegated permissions (granted by users)
Files.Read.All Allows files to be read. Application permissions (granted by administrators) for SharePoint site collections

To make it possible to scan documents into OneDrive or SharePoint, the following access permissions are necessary.

Scope Description
openid Allows the user to sign in
offline_access Allows a valid sign-in token to be fetched
profile Allows the basic user profile to be viewed.
email Allows the user’s email address to be viewed.
User.Read Allows signing in and reading the basic user profile.
Files.Read, Files.Read.All Allows files to be read. Delegated permissions (granted by users)
Files.ReadWrite, Files.ReadWrite.All Allows files to be read. Delegated permissions (granted by users)
Files.Read.All Allows files to be read. Application permissions (granted by administrators) for SharePoint site collections
Files.ReadWrite.All Allows files to be read. Application permissions (granted by administrators) for SharePoint site collections

To make it possible to send email messages with a Microsoft email account, the following access permissions are necessary.

Scope Description
openid Allows the user to sign in
offline_access Allows a valid sign-in token to be fetched
profile Allows the basic user profile to be viewed.
email Allows the user’s email address to be viewed.
User.Read Allows signing in and reading the basic user profile.
SNMP.Send Allows email to be sent.

To make it possible to receive email messages from a Microsoft email account, the following access permissions are necessary.

Scope Description
openid Allows the user to sign in
offline_access Allows a valid sign-in token to be fetched
profile Allows the basic user profile to be viewed.
email Allows the user’s email address to be viewed.
User.Read Allows signing in and reading the basic user profile.
IMAP.AccessAsUser Allows email to be received.

Depending on whether you want to reach one Microsoft account or several, different variants make sense.

To establish a connection from Docuflair to Microsoft 365, set a new storage location up. For that you need the tenant ID and client ID created earlier during the application registration. In single account mode you additionally enter the user in question (their Microsoft 365 email) and the password (their Microsoft 365 password). Where you want to start in the root directory, enter a /.

In multi account mode you can reach any Microsoft 365 user account in the same organisation. For that, simply leave the user name and password empty. Before a directory structure is reached, the user is verified at the multifunction device. Where you want, you can also link the UserToken with your signed-in user account once the sign-in has succeeded (where you signed in by card, PIN or as a Docuflair user, for example).

Last updated: