Description
Reporting an Issue or Missing Feature
Not able to overwrite existing app in a SP site collection app catalog even though I have given full control to the registered app for authentication.
Expected behavior
The app should get overwritten
Actual behavior
Throwing the error says The current user does not have the permission to
access the App Catalog.
Steps to reproduce behavior
Try the below
Created an app in a SharePoint site using /_layouts/appregnew.aspx
provided below access using /_layouts/appinv.aspx
Then run the below command
Connect-PnPOnline -Url https://sites.xxxx.com/sites/xxxxxxx -ClientId "xxxxx" -ClientSecret "xxxxx"
Add-PnPApp -path "C:\Projects\xxx\Backups\xxxxx.sppkg" -Scope Site
check the app uploaded to the Site collection level app catalog then try the below command
Add-PnPApp -path "C:\Projects\xxx\Backups\xxxxx.sppkg" -Scope Site -Overwrite
What is the version of the Cmdlet module you are running?
(you can retrieve this by executing Get-Module -Name "PnP.PowerShell" -ListAvailable
)
ModuleType Version Name
Manifest 1.10.0 PnP.PowerShell
Which operating system/environment are you running PnP PowerShell on?
- [ + ] Windows
- Linux
- MacOS
- Azure Cloud Shell
- Azure Functions
- Other : please specify