sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

[Regression] App-only Sites.FullControl.All cannot create or update TenantWideExtensions after #10955/#10963 fix

Open nicolaor opened this issue 3 months ago • 11 comments

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

SharePoint CSOM

Developer environment

Windows

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [ ] 💥 Microsoft Edge
  • [ ] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [x] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

  • PowerShell 7.6.3
  • PnP.PowerShell 3.1.0
  • Authentication: Entra ID application with a certificate
  • SharePoint application permission: Sites.FullControl.All
  • Admin consent granted
  • Tenant app catalog

Describe the bug / error

This appears to be a regression or an incomplete rollout of the fix associated with #10955 and #10963.

#10963 was closed on July 28, 2026 because #10955 was reported as fixed. On August 4, 2026, we reproduced the same failure using a newly created Entra application and certificate against our tenant app catalog.

Our production process fails while updating an existing TenantWideExtensions item through PnP.Core. A separate minimal PnP.PowerShell test also fails while creating a new disabled temporary item. Both operations fail with:

HttpResponseCode: 500
Code: Microsoft.SharePoint.SPException
Message: Must have Manage Web Site permissions in order to add apps to site collection app catalog

For the isolated reproduction we verified all of the following:

  • The Entra application had the SharePoint Sites.FullControl.All application role.
  • Admin consent was granted.
  • The issued SharePoint access token contained the Sites.FullControl.All role.
  • Certificate-based application authentication succeeded.
  • Application context successfully resolved the tenant app catalog.
  • Application context successfully read the hidden TenantWideExtensions list.
  • CREATE of a disabled temporary extension failed with the permission exception.
  • No list item was created, so the test could not proceed to UPDATE.

Question

Could the SharePoint engineering team confirm whether the fix for #10955 has reached all tenants and whether certificate-based application writes to TenantWideExtensions are still supported with the SharePoint Sites.FullControl.All application role?

The tenant identifiers, full raw transcript, and additional correlation information can be provided privately to Microsoft Support if required.

Steps to reproduce

  1. Create an Entra ID application and a certificate.
  2. Grant the application the SharePoint application permission Sites.FullControl.All.
  3. Grant tenant-wide admin consent.
  4. Connect to the SharePoint tenant app catalog using the application client ID and certificate.
  5. Read the hidden TenantWideExtensions list to confirm the application context can access it.
  6. Attempt to create a temporary disabled extension entry using a new component GUID, for example:
$values = @{
    Title                                  = "App-only TenantWideExtensions repro"
    TenantWideExtensionComponentId         = [guid]::NewGuid()
    TenantWideExtensionComponentProperties = '{"test":"create"}'
    TenantWideExtensionLocation            = 'ClientSideExtension.ApplicationCustomizer'
    TenantWideExtensionDisabled            = $true
    TenantWideExtensionSequence            = 65535
}

Add-PnPListItem -List "TenantWideExtensions" -Values $values -Connection $connection
  1. Observe the HTTP 500 Microsoft.SharePoint.SPException.

Attached is a sample powershell script with which we can reproduce the issue on multiple tenants (all the ones we executed it against actually)

Test-TenantWideExtensionAppOnly.txt

Expected behavior

An Entra application holding the SharePoint Sites.FullControl.All application role should be able to create and update entries in the tenant app catalog's TenantWideExtensions list using certificate-based application context.

Actual behavior

Reading the list succeeds, but a write fails with an error requiring Manage Web Site permission even though the access token contains the SharePoint Sites.FullControl.All application role.

Exact output from the isolated test:

UTC time        : 2026-08-04T14:28:57.7830390Z
PowerShell      : 7.6.3
PnP.PowerShell  : 3.1.0
Auth mode       : Entra ID application + certificate
Permission      : SharePoint Sites.FullControl.All (application)

Tenant app catalog resolved successfully.
TenantWideExtensions list read succeeded.
CREATE          : starting

TEST RESULT     : failed
Exception type  : System.Exception
Message         : Must have Manage Web Site permissions in order to add apps to site collection app catalog
Repro invocation failure: Must have Manage Web Site permissions in order to add apps to site collection app catalog

An occurrence from the production UPDATE operation returned:

HttpResponseCode: 500
Code: Microsoft.SharePoint.SPException
Message: Must have Manage Web Site permissions in order to add apps to site collection app catalog
ClientRequestId: d8ee2da2-e02f-1001-9d1b-20eb20714bb9
SPClientServiceRequestDuration: 97
X-SharePointHealthScore: 1
X-SP-SERVERSTATE: ReadOnly=0

nicolaor avatar Aug 04 '26 15:08 nicolaor

Hello @nicolaor Thank you for bringing this issue to our attention. We will look into it and get back to you shortly.

Ashlesha-MSFT avatar Aug 06 '26 06:08 Ashlesha-MSFT

Hi @nick-pape,

Could you please share the current status of this issue from the engineering side?

Developers seeing what appears to be the same behavior again after the mitigation for #10955/#10963. Specifically, app-only authentication with Sites.FullControl.All can successfully read the TenantWideExtensions list but still fails on create/update operations with the following error:

Must have Manage Web Site permissions in order to add apps to site collection app catalog.

Could you confirm whether:

  • this is a known regression,
  • the previous mitigation is still being rolled out, or
  • the engineering team is currently investigating a new issue?

Any update on the current status or expected timeline would be greatly appreciated. Thank you!

Ashlesha-MSFT avatar Aug 06 '26 06:08 Ashlesha-MSFT

Following up on this — the issue is still unresolved and is becoming a major concern. We have live features deployed to hundreds of customers that depend on this, so a fix is becoming urgent. Could you please provide an update on the status?

nicolaor avatar Aug 11 '26 09:08 nicolaor

Any news on this? Thanks.

NicolasMCAG avatar Aug 11 '26 14:08 NicolasMCAG

Facing the same issue. Please share the latest status.

ximoran-bot avatar Aug 11 '26 14:08 ximoran-bot

Following up on this — the issue is still unresolved and is becoming a major concern. We have live features deployed to hundreds of customers that depend on this, so a fix is becoming urgent. Could you please provide an update on the status?

Looking forward for an Update on this Issue. Is there a known workaround beside using a service user?

czullu avatar Aug 11 '26 14:08 czullu

Hi @nicolaor, @NicolasMCAG, @ximoran-bot & @czullu - This was unfortunate mistake on the permission changes on the app catalog. Change has been now reverted/disabled and would ask for confirmation that the issue is resolved. Thanks for that message advance.

VesaJuvonen avatar Aug 14 '26 10:08 VesaJuvonen

Hello Vesa, Tested on 2 Tenants and issue seems resolved on both. One of them still had the issue this morning for sure.

Thank you for taking care.

Gesendet von Outlook für Androidhttps://aka.ms/AAb9ysg


From: Vesa Juvonen @.> Sent: Friday, 14 August 2026 12:17:57 To: SharePoint/sp-dev-docs @.> Cc: Christian Zuellig @.>; Mention @.> Subject: Re: [SharePoint/sp-dev-docs] [Regression] App-only Sites.FullControl.All cannot create or update TenantWideExtensions after #10955/#10963 fix (Issue #10976)

[https://avatars.githubusercontent.com/u/7446437?s=20&v=4]VesaJuvonen left a comment (SharePoint/sp-dev-docs#10976)https://github.com/SharePoint/sp-dev-docs/issues/10976#issuecomment-5292183284

Hi Rene Nicolao @.)https://github.com/nicolaor, Nicolas Pizzorno @.)https://github.com/NicolasMCAG, ximoran-bothttps://github.com/ximoran-bot & Christian Zuellig @.***)https://github.com/czullu - This was unfortunate mistake on the permission changes on the app catalog. Change has been now reverted/disabled and would ask for confirmation that the issue is resolved. Thanks for that message advance.

— Reply to this email directly, view it on GitHubhttps://github.com/SharePoint/sp-dev-docs/issues/10976?email_source=notifications&email_token=AHPCQUPXUCFVN4RACYPIZEL5J3RNLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRZGIYTQMZSHA2KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-5292183284, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHPCQUNMKX23G3WMA6JVK335J3RNLAVCNFSNUABEKJSXA33TNF2G64TZHM3DKMZTGE4DONJ3JFZXG5LFHM2TANRRHE2TOMBZGKQXMAQ. Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOShttps://github.com/notifications/mobile/ios/AHPCQUK4DQA6Q3GWFTQFK2T5J3RNLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRZGIYTQMZSHA2KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJKTGN5XXIZLSL5UW64Y and Androidhttps://github.com/notifications/mobile/android/AHPCQUILFFFHZ4ZFAYBVUZL5J3RNLA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTKMRZGIYTQMZSHA2KM4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLTGN5XXIZLSL5QW4ZDSN5UWI. Download it today! You are receiving this because you were mentioned.Message ID: @.***>

czullu avatar Aug 14 '26 11:08 czullu

Hi @VesaJuvonen I confirm, the issue is resolved now. Thanks!

nicolaor avatar Aug 14 '26 11:08 nicolaor

As the issue has been confirmed as resolved, we’re closing this issue.

Ashlesha-MSFT avatar Sep 07 '26 05:09 Ashlesha-MSFT

Heads up for anyone ho have been involved on this issue - We are now officially changing the needed permission son these operations - starting from January 31st of 2027.

FYI - @nicolaor , @czullu , @NicolasMCAG

https://devblogs.microsoft.com/microsoft365dev/action-required-update-app-only-permissions-for-sharepoint-tenant-app-catalog-writes/

That gives us now 2 months time to adjust things.

VesaJuvonen avatar Nov 26 '26 09:11 VesaJuvonen