For most cases, we recommend using the native Diggspace app for authenticating with Microsoft 365. If for some reason you need to use a custom App Registration, follow the steps below on how to create it on Entra ID.

The following steps need to be performed by a Microsoft Entra ID admin
- Create a new App Registration
- Choose a name that is easily identifiable by you
- Select Single Tenant
- Fill in the Redirect URI
- Select Single-page application (SPA)
- The value will be: "https://your-diggspace-domain/blank.html"
- Click Register

- Go to the Manage > API Permissions on the side panel, and click Add a permission:
- Select Microsoft Graph > Delegated, and add the following permissions
- email – for authentication
- offline_access – for authentication
- profile – for authentication
- Mail.ReadBasic – necessary to indicate the number of emails to read.
- Calendars.Read – necessary to indicate the number of calendar events for the day.
- Calendars.ReadWrite – to add a Diggspace event to the user's Outlook calendar.
- User.Read – To access the user's profile information, to list it on the Diggspace profile page.
- User.Read.All – To access the user's profile information, to list it on the Diggspace profile page.
- Files.Read – List the user's recent documents.
- Group.Read.All – List the user's groups.
- Group.ReadWrite.All – Add groups to favorites.
- Directory.AccessAsUser.All – To enable access with the user's context.
- People.Read - Display frequent contacts
- Tasks.Read and Tasks.Read.Shared - Display user Todo and Planner tasks
- Application
- User.Read.All – Used by a profile import mechanism that runs nightly (synchronizes user photos, which SCIM cannot do).
- ExternalConnection.ReadWrite.OwnedBy – Used to make Diggspace content available to Microsoft Search.
- ExternalItem.ReadWrite.OwnedBy – Used to make Diggspace content available to Microsoft Search.
- Click Grant admin consent
- Then go to Manage > Certificates & Secrets in the sidebar and create a new client secret, take note of this secret as you will need to add it to your Diggspace settings.
- In the Overview, take note of the Application ID, as well as the Directory (tenant) ID.
- Go to your Diggspace portal and navigate to User Management > Authentication through the user menu
- In the Microsoft 365 section, select Use custom app option, click the edit button, and input the App ID, App Secret, and Tenant ID saved in steps 8 and 9.
- If the Use custom app option is disabled, reach out to your support contact.