BestPaid guides · Microsoft 365 · SharePoint Online

SharePoint app-only code stopped working? Azure ACS was retired on April 2, 2026. Move it to Microsoft Entra ID and Sites.Selected

Scripts, services and integrations that sign in to SharePoint Online with a client ID and secret from AppRegNew.aspx, with permissions granted in AppInv.aspx, stopped working when Microsoft retired Azure ACS. There's no extension and no in-place upgrade: each one needs a new Microsoft Entra ID app.

Sources: Microsoft's Azure ACS retirement announcement, its Add-in and Azure ACS retirement FAQ and Add-in retirement announcement, Microsoft's SharePoint app-only guidance, its Sites.Selected (resource-specific consent) article, the Microsoft 365 Developer Blog's Sites.Selected update and answers on Microsoft Q&A. Checked on November 21, 2026. This page is our own summary; follow Microsoft's documentation for every detail.

What was retired

1. Register an Entra ID app for each integration

2. Change how the code signs in

With PnP Framework and CSOM, the change is often only the sign-in:

// before (ACS, no longer works)
// using var ctx = new AuthenticationManager().GetACSAppOnlyContext(siteUrl, clientId, clientSecret);

// after (Entra ID app with a certificate)
var auth = new PnP.Framework.AuthenticationManager(clientId, certificate, "contoso.onmicrosoft.com");
using var ctx = await auth.GetContextAsync(siteUrl);
ctx.Load(ctx.Web, w => w.Title);
await ctx.ExecuteQueryAsync();

Code that only reads and writes files and list items can also move to Microsoft Graph. It then needs the Microsoft Graph Sites.Selected permission; the site grants themselves apply to both Graph and SharePoint's own APIs.

3. Don't forget the less visible ones

Something stopped on April 2 and nobody knows how it was built? We move SharePoint add-ins and ACS-based integrations to Microsoft Entra ID, Sites.Selected and Microsoft Graph at a fixed price: a script or scheduled job from $690, an app or service from $1,490. One app gets a free estimate within 2 business days. We never ask for passwords, secrets or admin access: your admin registers the app and grants consent.
See the Microsoft 365 migration offer
Signing in with a user name and password instead? SharePointOnlineCredentials (IDCRL) is blocked too: how to move that code to MSAL and Microsoft Entra ID.