---
locale: "en"
updated_at: "2026-07-31T12:18:26.931Z"
canonical: "https://www.isdecisions.com/en/fileaudit/docs/guides/configuration/advanced/register-microsoft-entra-app-oauth2"
---

# Register a Microsoft Entra app for OAuth2

Microsoft Entra app registration for FileAudit OAuth2 email.

## 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](/fileaudit/docs/guides/configuration/configure-email-settings#configure-smtp-with-oauth2) 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](https://entra.microsoft.com).

## 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](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app).
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](https://learn.microsoft.com/en-us/entra/identity-platform/how-to-add-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](/fileaudit/docs/guides/configuration/configure-email-settings#configure-smtp-with-oauth2) 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.**
