Forum Discussion

Radika_Koralearachchi's avatar
Radika_Koralearachchi
Copper Contributor
Mar 27, 2025

Sharepoint app only key renewal

Hi Guys 

We have a SharePoint app only created in 2020 and we successfully renewed that 3 years back 

This app integration used for time-critical application 

we hear that Microsoft is going to discontinue SharePoint app-only authentication April 2026 

somehow our app key needed to be renewed in coming May 2025 

we have found this script to do the renewal, but can you guys confirm this app key renewal is still valid ? 

https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/replace-an-expiring-client-secret-in-a-sharepoint-add-in

 

Best Regards

Radika

 

2 Replies

  • JoyceBeatty's avatar
    JoyceBeatty
    Iron Contributor

    1. Access the Azure Portal
    Sign in to the Azure Portal
    Navigate to Azure Active Directory > Application Registration > Select your application
    2. Create a new password
    In the “Certificates and Passwords” tab
    Click “+ New Client Password”
    Select the expiration date (12 months recommended)
    Copy the generated password immediately (you cannot view it again after closing)
    3. Update the application configuration
    Replace the old password with the new one in all SharePoint solutions that use it
    4. Certificate authentication update (recommended)
    Generate new certificate
    Create self-signed certificates using Windows built-in tools
    Or issue an official certificate through an enterprise CA
    Upload to Azure AD
    Upload a new certificate in the “Certificates” section of the application enrollment.
    Record the certificate fingerprint (Thumbprint)
    5. Configure the application
    Update the certificate fingerprint information in the code
    Ensure the certificate private key is properly stored
    6. Validate after update
    Test the connection:
    powershell
    Connect-PnPOnline -Url “https://yoursite.sharepoint.com” -ClientId “Application ID” -ClientSecret “New Password”
    Check API permissions: Verify that the app still has the necessary SharePoint API permissions

    • Radika_Koralearachchi's avatar
      Radika_Koralearachchi
      Copper Contributor

      Hi Yoyce 

      Thanks for the reply 

      This is a Sharepoint App-only registered app and was created sometime back, it is not Azure App only registered app 

       

      Those apps we can't see from the Admin portal

      Best Regards

      Radika

Resources