--- 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?sv=2026-02-06&spr=https&st=2026-10-27T15%3A40%3A38Z&se=2026-10-27T16%3A40%3A38Z&sr=c&sp=r&sig=E4af5Wfn991fYYcc9ifJd4KF1FpNmTDSjHY38Y138bo%3D) 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?sv=2026-02-06&spr=https&st=2026-10-27T15%3A40%3A38Z&se=2026-10-27T16%3A40%3A38Z&sr=c&sp=r&sig=E4af5Wfn991fYYcc9ifJd4KF1FpNmTDSjHY38Y138bo%3D) 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?sv=2026-02-06&spr=https&st=2026-10-27T15%3A40%3A38Z&se=2026-10-27T16%3A40%3A38Z&sr=c&sp=r&sig=E4af5Wfn991fYYcc9ifJd4KF1FpNmTDSjHY38Y138bo%3D) 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?sv=2026-02-06&spr=https&st=2026-10-27T15%3A40%3A38Z&se=2026-10-27T16%3A40%3A38Z&sr=c&sp=r&sig=E4af5Wfn991fYYcc9ifJd4KF1FpNmTDSjHY38Y138bo%3D) 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?sv=2026-02-06&spr=https&st=2026-10-27T15%3A40%3A38Z&se=2026-10-27T16%3A40%3A38Z&sr=c&sp=r&sig=E4af5Wfn991fYYcc9ifJd4KF1FpNmTDSjHY38Y138bo%3D) 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?sv=2026-02-06&spr=https&st=2026-10-27T15%3A40%3A38Z&se=2026-10-27T16%3A40%3A38Z&sr=c&sp=r&sig=E4af5Wfn991fYYcc9ifJd4KF1FpNmTDSjHY38Y138bo%3D) 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?sv=2026-02-06&spr=https&st=2026-10-27T15%3A40%3A38Z&se=2026-10-27T16%3A40%3A38Z&sr=c&sp=r&sig=E4af5Wfn991fYYcc9ifJd4KF1FpNmTDSjHY38Y138bo%3D) 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?sv=2026-02-06&spr=https&st=2026-10-27T15%3A40%3A38Z&se=2026-10-27T16%3A40%3A38Z&sr=c&sp=r&sig=E4af5Wfn991fYYcc9ifJd4KF1FpNmTDSjHY38Y138bo%3D) 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?sv=2026-02-06&spr=https&st=2026-10-27T15%3A40%3A38Z&se=2026-10-27T16%3A40%3A38Z&sr=c&sp=r&sig=E4af5Wfn991fYYcc9ifJd4KF1FpNmTDSjHY38Y138bo%3D) 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?sv=2026-02-06&spr=https&st=2026-10-27T15%3A40%3A38Z&se=2026-10-27T16%3A40%3A38Z&sr=c&sp=r&sig=E4af5Wfn991fYYcc9ifJd4KF1FpNmTDSjHY38Y138bo%3D) ❗️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?sv=2026-02-06&spr=https&st=2026-10-27T15%3A40%3A38Z&se=2026-10-27T16%3A40%3A38Z&sr=c&sp=r&sig=E4af5Wfn991fYYcc9ifJd4KF1FpNmTDSjHY38Y138bo%3D) 3. Copy and paste these values into a notepad for later use.