Skip to content

Unable to upload .sppkg to tenant app catalog: Access denied. #11036

Description

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

Windows

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx SPFx 1.24.0-beta.5 preview
  • Node.js 22
  • etc

Describe the bug / error

I've built a package and I'm trying to upload the package to the tenant app catalog, but I'm receiving 403 Forbidden.

{
    "error": {
        "code": "-2147024891, System.UnauthorizedAccessException",
        "message": {
            "lang": "en-US",
            "value": "Access denied."
        }
    }
}

The error appears even when I try to upload sample package like
https://github.com/pnp/spfx-copilot-components/blob/main/samples/my-day/sharepoint/solution/my-day.sppkg

Steps to reproduce

  1. Create SPFx Copilot App
  2. Build .sppkg
  3. Upload it to the tenant app catalog

Expected behavior

I can upload the .sppkg file or a response with more detailed error and clear explanation is returned.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions