--- title: "Updating a Client Secret Before Expiration" slug: "updating-a-client-secret-before-expiration" tags: ["Entra ID", "task"] updated: 2026-06-10T13:46:17Z published: 2026-06-10T13:46:17Z canonical: "help.dox42.com/updating-a-client-secret-before-expiration" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://help.dox42.com/llms.txt > Use this file to discover all available pages before exploring further. # Updating a Client Secret Before Expiration When the client secret expires it must update everywhere to ensure uninterrupted access to your data. > [!WARNING] > **Important** > > A Client Secret in Microsoft Entra ID can only be set for a maximum validity of 2 years. Planning ahead avoids service interruptions. ## Prerequisite - You have [Generated a new Client Secret in your Entra ID App Registration](https://help.dox42.com/docs/adding-a-client-secret-to-your-app-registration-in-azure-ad) ## Step 1: Update in MAUI SharePoint Online Sites For detailed instructions please refer to: [Adding your Microsoft Entra ID app registration to settings in MAUI](https://help.dox42.com/docs/adding-your-entra-id-app-registration-to-settings-in-maui) 1. Go to your **MAUI SharePoint Online Site**. 2. Go to **Settings.** 3. In Settings go to **Data Source Configuration**. 4. Select the **Authentication Settings** for your SharePoint Online connection. 5. **Replace** the old Client Secret with the new one. 6. In MAUI select **Save**. ## Step 2: Update in Templates Depending on your configuration, the client secret may be stored in: Option 1: **The Excel Connection File** Option 2: **The Template** ## Option 1: Excel Connection File For detailed instructions please refer to: [Using a Microsoft Excel config file for the Add-In’s Microsoft Entra ID configuration](https://help.dox42.com/docs/using-a-microsoft-excel-config-file-for-the-add-ins-azure-ad-configuration-recommended) 1. Select the Excel config file used by your templates. 2. Go to the section where the **Client Secret** is stored. 3. **Replace** the old secret with the new one. 4. Inside the file menue select **Save.** 5. **Test** the connection. ## Option 2: Inside the Template For detailed instructions please refer to: [Connecting a SharePoint Data Source](https://help.dox42.com/docs/configure-entra-id-with-aad-application-user-and-certificate) 1. Select the template. 2. Go to the **Data Map > Data Sources > SharePoint Data Source > Office 365 Entra ID**. 3. Inside the Entra ID Configuration window **replace the Client Secret**. 4. Select OK > select OK > in the Datamap select **Save.** 5. **Test** the connection. > [!WARNING] > **Important** > > If **Power Automate** or other integrations are used, update the Client Secret there also. ## Result All data source connections are successfully updated with a new Client Secret, ensuring uninterrupted access. ## Related - [Adding a client secret to your app registration in Microsoft Entra ID](/adding-a-client-secret-to-your-app-registration-in-azure-ad.md) - [Using a Microsoft Excel config file for the Add-In’s Microsoft Entra ID configuration](/using-a-microsoft-excel-config-file-for-the-add-ins-azure-ad-configuration-recommended.md) - [Adding your Microsoft Entra ID app registration to settings in MAUI](/adding-your-entra-id-app-registration-to-settings-in-maui.md)