Skip to content

[BUG] Add-PnpApp Publish feature not working #4751

Open
@SanthoAnbros

Description

@SanthoAnbros

Reporting an Issue or Missing Feature

Not able to publish 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 published and deployed

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 -Publish

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions