Skip to content

Sync to teams 403 forbidden #5425

@mdanielcristian

Description

@mdanielcristian

Select the SPfx solution in the app catalog, click Sync to Teams -> error message "Failed to sync solution to Teams", further investigation in dev tools reveals the following error message: {"error":{"code":"-1, System.Net.WebException","message":{"lang":"en-US","value":"The remote server returned an error: (403) Forbidden."}}}

Some additional details:
-The user is a global admin
-The same solution with the same user was syncing successfully yesterday
-Tried new solution on different tenants, same issue
-I think it has something to do with the new teams admin portal, the old 'Allow sideloading of external apps' in the o365 admin center is off and disabled
sideloading
and you are directed to the new Teams Admin portal, but everything there is enabled as well
org wide
global

Steps to reproduce

  1. Create a new SPfx solution for a Teams Tab following the steps here: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/web-parts/get-started/using-web-part-as-ms-teams-tab
  2. Click Sync to Teams, error occurs instead of the success message

Expected behavior

Sync to teams successfully

Developer environment

  • OS: Windows 10, SharePoint Onine
  • Framework: SPfx 1.10.0
  • Browser(s): any
  • Tooling: VS Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:spfxCategory: SharePoint Framework (not extensions related)area:spfx-msteamsCategory: SharePoint Framework & Microsoft Teams supportstatus:fixedIssue was fixed in current or prior release.type:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions