Skip to content

Documentation and Discoverability of additional configuration needed to access MS Graph from all native clients (Teams Tabs Desktop/Mobile, SharePoint Mobile) #4373

@TheTedAdams

Description

@TheTedAdams

Category

  • Question
  • Typo
  • Bug
  • Additional article idea

Background

There seems to be many separate issues in this repo about failure to access Graph API or get graph tokens in native apps. It keeps coming in as separate bug reports for users attempting to use Graph API or tokens in Teams for Desktop, Teams Mobile, SharePoint Mobile, etc. Discussions around this have arisen at least in: #3923 and #2521. It has been known for quite some time that SPFx web parts were unable to access graph from within native apps. The linked comment is from Oct 25, 2018 saying that it was already a known issue by the team, but as far as I can tell it was never added to the documentation. That left developers to create and deploy SPFx web parts and distribute them to their customers without knowing that they would not work in native apps until the customers ran into it. Developers cannot be expected to read through all 787 (at this moment) open issues on this repo to find long-standing and known problems like this.

6 months later, On April 30 we were presented with a temporary, somewhat painful workaround (most of our customers are not json-fluent). That comment was made on an issue specifically about accessing graph from SharePoint mobile app, which means that people like myself coming at this problem from the Teams Desktop app had a difficult time finding it. In that comment we were told

Once we get that confirmation [that the temp fix works] we will proceed on make those steps available to everybody through Public doucumentation.

Confirmation was received from two sources, and we were told on May 2 when the issue was closed that the current work-around would be publicly documented "today" and the documentation would be removed when the promised better way came along that didn't require editing the manifest by hand.

Looking through the docs, unless I missed it, I do not see any of this mentioned in the Teams Tabs docs, in the MsGraphClient docs, in the "Consume the Microsoft Graph in the SharePoint Framework" docs, and specifically not in the section of that article about deploying the solution and granting permissions which contains the most granular instructions for granting API access where I would most likely expect to see the manifest edits documented.

The Ask

Firstly, could we please get the current manifest edit work around, and even more importantly the need for the current manifest edit work around (the fact that SPFx web parts cannot access graph from Teams Desktop, Teams Mobile, or SharePoint Mobile without additional steps) in the docs somewhere? If they are already in the docs somewhere that I did not easily find, perhaps a reference to that place from some of the locations I mentioned above?

Secondly, at this point I'm subscribed to various closed issues that are still being actively commented on as the only places I can get updates about the progress of the promised better fix that doesn't require manual manifest editing. Those issues are specific to either Teams Tabs or the SharePoint Mobile App, and so are not easy to find for people coming from one or the other. They are also very difficult to find because they are closed, and by default GitHub issue searches exclude closed issues.

I created this issue hoping it could be a central (and open issue) for discussion and updates around the promised more automated fix, which impacts all native apps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Attention 👋Original poster responded to request for feedback, awaiting attention from Microsoft / community.area:authCategory: Authentication (Azure AD / etc)area:docsCategory: SharePoint developer/development documentation relatedarea:spfxCategory: SharePoint Framework (not extensions related)status:to-be-reviewedIssue needs to be reviewed by Microsoft for additional follow up / review.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions