Forum Discussion
Patrick Rote
Feb 08, 2021Iron Contributor
Error when using trying to publish/deploy spfx package to Apps catalog in a site collection
Hi there, I have created an appcatalog scoped for a site collection(not in a root site) url like this App Catalog URL https://sitename.sharepoint.com/sites/Dev/AppCatalog I have tried the fol...
- Feb 08, 2021Do you have access to the Global App Catalogue as Admin? If no, that's the cause of your access denied error
Patrick Rote
Feb 08, 2021Iron Contributor
Don Kirkham thanks for the response
Yes i am a site collection admin
Correct as you can see in my script the second option had Connect-PnPOnline had the AppCatalog off the url but still getting the error here.
The error is on the line - "+ $App = Add-PnPApp -Path $AppFilePath" below
Add-PnPApp : {"error":{"code":"-2147024891,
System.UnauthorizedAccessException","message":{"lang":"en-US","value":"Access denied. You do not have permission to
perform this action or access this resource."}}}
At C:\\AddPackage.ps1:9 char:8
+ $App = Add-PnPApp -Path $AppFilePath
Any thoughts?
Feb 08, 2021
Do you have access to the Global App Catalogue as Admin? If no, that's the cause of your access denied error
- Sdoodly777Jun 05, 2023Copper ContributorFaced the same error and this worked Juan, thank you!
- Patrick RoteFeb 16, 2021Iron ContributorSpot on and thats was the issue
- Patrick RoteFeb 09, 2021Iron ContributorThanks Juan.
Good point . Will confirm