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
Additional environment details
- PnP.Framework 1.9.0 NuGet in C# CSOM (.Net 6)
- PnP.PowerShell 3.3.0 for quick tests in PowerShell
Describe the bug / error
We have a backend process that creates Site Collections and then tries to write into the Site Collection Tenant Wide Extensions list to configure an Extension application installed in the Tenant App Catalog. We write in that list using CSOM.
The context is authenticated using a ClientId and a Certificate of an App Registration in EntraID which has the Sites.FullControl.All permission. This was working fine until a few days ago.
Now it just fails with the message: "Must have Manage Web Site permissions in order to add apps to Site Collection App Catalog".
I have tried testing the same action with PnP.PowerShell and the same error happens:
I have also tried using a different App Registration with Sites.Selected permission and giving Full Control to the created Site Collection and the Site Collection of the Tenant App Catalog, but the same message appears.
What works is connecting as a user that has Full Control on the created Site Collection. But our backend process authenticates with app-only credentials.
Is this a bug? Is this an intended change?
Thank you.
Steps to reproduce
- Install an Extension Application in the Tenant App Catalog.
- Create a test Site Collection with its own App Catalog enabled.
- Authenticate in that Site Collection using PnP.PowerShell with Connect-PnPOnline and a ClientId + Certificate of an App Registration with Sites.FullControl.All permission.
- Do an Add-PnPListItem that writes into the Tenant Wide Extensions list of the created Site Collection using the ComponentId of the installed Extension.
Expected behavior
The following error message will be thrown by the Add-PnPListItem: "Must have Manage Web Site permissions in order to add apps to site collection app catalog"

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
Additional environment details
Describe the bug / error
We have a backend process that creates Site Collections and then tries to write into the Site Collection Tenant Wide Extensions list to configure an Extension application installed in the Tenant App Catalog. We write in that list using CSOM.
The context is authenticated using a ClientId and a Certificate of an App Registration in EntraID which has the Sites.FullControl.All permission. This was working fine until a few days ago.
Now it just fails with the message: "Must have Manage Web Site permissions in order to add apps to Site Collection App Catalog".
I have tried testing the same action with PnP.PowerShell and the same error happens:
I have also tried using a different App Registration with Sites.Selected permission and giving Full Control to the created Site Collection and the Site Collection of the Tenant App Catalog, but the same message appears.
What works is connecting as a user that has Full Control on the created Site Collection. But our backend process authenticates with app-only credentials.
Is this a bug? Is this an intended change?
Thank you.
Steps to reproduce
Expected behavior
The following error message will be thrown by the Add-PnPListItem: "Must have Manage Web Site permissions in order to add apps to site collection app catalog"