Skip to content

SPFx solution with Graph api not working as Teams Tab (in native client) #7034

@MaheshakaMudli

Description

@MaheshakaMudli

Target SharePoint environment

SharePoint Online

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

other (enter in the "Additional environment details" area below)

Developer environment

No response

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

  • Teams desktop app (native client)
  • SPFx 1.11.0
  • Node.js 10.24.1

Describe the bug / error

SPFx webpart with Graph API hosted as teams tab is working fine in browsers but failing in native client app and SharePoint app too. We have started facing this issue recently as it was working before. On one of our dev tenant it is working fine but not working in prod environment.

Steps to reproduce

  1. Add a sharepoint page as Teams tab with SPFX webpart and graph api in it.
  2. Open the tab in native client.
  3. The graph api gives 403 Forbidden error.
  4. On checking the network the url which throws this error is
    https://tenant.sharepoint.com/_api/Microsoft.Sharepoint.Internal.ClientSideComponent.Token.AcquireOBOToken?resource=%27ece7c1fb-fcef-4195-ae0c-65fe47a4602e%27&clientId=%27e427a6c3-f470-4c33-9af7-6b0e1fd21eda%27

Expected behavior

The teams tab with graph api should load the data in native client too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackAwaiting response from the original poster of the issue. Marked as stale if no activity for 7 days.area:spfxCategory: SharePoint Framework (not extensions related)status:fixed-next-dropIssue planned to be fixed in an upcoming release.type:bug-confirmedConfirmed bug, not working as designed / expected.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions