Register a Microsoft Entra app for OAuth2

Register a Microsoft Entra app to get the client ID and tenant ID FileAudit uses to send email through Microsoft.

Published July 16, 2026

Before you begin

You need this only if FileAudit sends email through a provider that requires OAuth2 and you use Microsoft. It produces the Application (client) ID and Directory (tenant) ID that you enter in the OAuth2 path of Configure email settings Guide.

Make sure you have:

  • A Microsoft account with at least the Application Developer role on the tenant you will use. Without sufficient permissions, the app registration options are not available.

  • Access to the Microsoft Entra admin center.

Register the app and create the credentials

You register the app in your own Microsoft Entra tenant. Microsoft owns the console, so each step links to Microsoft's own documentation, which stays current when the interface changes.

  1. Register a new application, choosing the Supported account types that match who will sign in, following Register an application.

  2. On the app's Overview page, copy the Application (client) ID and the Directory (tenant) ID.

  3. Add a redirect URI for the Mobile and desktop applications platform, and select the suggested URI https://login.microsoftonline.com/common/oauth2/nativeclient, following How to add a redirect URI.

Note

FileAudit uses a public client (desktop app). Do not create a client secret: for Microsoft, FileAudit authenticates with the tenant ID, not a secret.

Use the credentials in FileAudit

Enter the Application (client) ID and Directory (tenant) ID when you set up OAuth2 email, in the Configure SMTP with OAuth2 section of Configure email settings Guide:

  1. In Mode, select OAuth2.

  2. In Client ID, enter the Application (client) ID.

  3. In Tenant ID, enter the Directory (tenant) ID.

  4. Sing in, with the account mail you used in Sender E-mail.