---
title: "STEP 1: Register application (o365-audit-logs)"
slug: "step-1-register-your-application"
updated: 2026-03-17T09:45:52Z
published: 2026-03-17T09:45:52Z
canonical: "docs.hunters.ai/step-1-register-your-application"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hunters.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# STEP 1: Register application (o365-audit-logs)

In this step you will register a new application on Azure with appropriate permissions, create client secrets and gather information in your notepad for the next steps.

**1. Create the application**

1. In the Azure portal home screen, open the side menu and click **Microsoft Entra ID**. ![image.png](https://cdn.document360.io/5f63f0e0-3c70-4d00-b623-82493be0bde5/Images/Documentation/image%28251%29.png)
2. Now, from the side menu click **Manage > App registration**. The App registration menu opens.
3. From the upper menu, click **New registration**. ![image](https://cdn.document360.io/5f63f0e0-3c70-4d00-b623-82493be0bde5/Images/Documentation/ms365-2.png) The Register an application window opens.
4. Under the **Name** field, enter a descriptive name.
5. Under the **Redirect URI** section, select **Web** platform and paste [http://localhost:5110](http://localhost:5110) in the **URL** field. ![image](https://cdn.document360.io/5f63f0e0-3c70-4d00-b623-82493be0bde5/Images/Documentation/ms365-3.png)
6. Click **Register**. The application window opens.

**2. Provide API permissions**

1. From the side menu, click **API permissions > + Add a permission**. ![image](https://cdn.document360.io/5f63f0e0-3c70-4d00-b623-82493be0bde5/Images/Documentation/ms365-4.png) The Request API permissions panel opens.
2. Scroll down to locate the **Office 365 Management APIs** tile and click on it. ![image](https://cdn.document360.io/5f63f0e0-3c70-4d00-b623-82493be0bde5/Images/Documentation/ms365-5.png)
3. Select the **Delegated permissions** type and check all permission checkboxes. ![image](https://cdn.document360.io/5f63f0e0-3c70-4d00-b623-82493be0bde5/Images/Documentation/ms365-6.png)
4. Now select the **Application permissions** type and check all permission checkboxes. ![image](https://cdn.document360.io/5f63f0e0-3c70-4d00-b623-82493be0bde5/Images/Documentation/ms365-7.png)
5. Click **Add permissions** to close the panel and return to the application window.
6. Click **Grant admin consent for directory** to grant admin permissions.

**3. Create client secret**

1. From the side menu, click **Certificates & secrets**.
2. Click **New client secret** to open the client secret panel. ![image](https://cdn.document360.io/5f63f0e0-3c70-4d00-b623-82493be0bde5/Images/Documentation/ms365-8.png)
3. In the **Description** field, enter a descriptive title.
4. From the **Expires** dropdown list, select **24 months**.
5. Click **Add** to add the secret. ![image](https://cdn.document360.io/5f63f0e0-3c70-4d00-b623-82493be0bde5/Images/Documentation/ms365-9.png) The secret now appears under the Client secrets list.
6. Copy the client secret **Value** and **Secret ID** to a notepad for later use. ![image](https://cdn.document360.io/5f63f0e0-3c70-4d00-b623-82493be0bde5/Images/Documentation/ms365-10.png)

❗️IMPORTANT

After a while, the client secret value will be hidden from view and you will not be able to retrieve it again.

**4. Retrieve Tenant ID and Application ID**

1. From the side menu, click **Overview**.
2. Locate the **Application (client) ID** and **Directory (tenant) ID**. ![](https://cdn.document360.io/5f63f0e0-3c70-4d00-b623-82493be0bde5/Images/Documentation/image(142).png)
3. Copy and paste these values into a notepad for later use.
