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.
The Microsoft Entra admin centre
Section titled “The Microsoft Entra admin centre”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.

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.

Registering the application
Section titled “Registering the application”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.

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 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.

Authentication
Section titled “Authentication”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.

API permissions
Section titled “API permissions”In the next step, add new permissions under the API permissions.

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

Choose the Delegated permissions option.

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

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.

Access permissions
Section titled “Access permissions”Depending on the area of use, the following access permissions are needed:
Printing
Section titled “Printing”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. |
| 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 |
Scanning
Section titled “Scanning”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. |
| 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 |
Sending email
Section titled “Sending email”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. |
| 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. |
Receiving email
Section titled “Receiving email”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. |
| 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. |
The sign-in mode
Section titled “The sign-in mode”Depending on whether you want to reach one Microsoft account or several, different variants make sense.
Single account mode
Section titled “Single account mode”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 /.
Multi account mode
Section titled “Multi account mode”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).