Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] In Add-PnPApp overwrite is not working throws error The current user does not have the permission to access the App Catalog. #4750

Open
5 tasks
SanthoAnbros opened this issue Feb 22, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@SanthoAnbros
Copy link

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
@SanthoAnbros SanthoAnbros added the bug Something isn't working label Feb 22, 2025
@mohamedfamin
Copy link

mohamedfamin commented Feb 24, 2025

Thanks for notifying us. We are also facing the same issue, which has been occurring across all tenants in the past few days.

We use a registered Azure AD application to overwrite the app in the SharePoint app catalog. However, we are now encountering a permission issue: "The current user does not have permission to access the App Catalog."

This process has been working fine for the last year, but the issue started occurring last week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants