


Adding the following piece of code to your custom Microsoft Teams app manifest will make sure that it fetches an access token for your SharePoint environment.A Practical guide to sharing and collaborating on files If the SharePoint app can do it, there had to be a way for us too.Ĭombining the knowledge from here, here and some tests with a personal scoped app, I figured out the holy grail. Unless you or your users like logging in multiple times, endless spinners or workarounds on workarounds, the above options aren't very interesting.

Some more investigation showed that, just like with the normal URL (see previous option), this can be made to work by preloading the access token for SharePoint using a custom list in the SharePoint app. Seems like the behavior of the Website app or the SSO trick changed, I was also seeing the spinner in places it used to work before. All reports mentioned an endless spinner: Website app with SSO trick, the endless spinner After Tony published it, people reported that it doesn't work for them on the desktop client.

This URL format is also used for integrating custom SharePoint Framework web parts into Microsoft Teams, so it was a safe bet although it's not officially supported. Luckily, this week long-time MVP Tony Redmond did publish it. This trick for Single Sign-On with SharePoint pages has been in my blog backlog for a while, but I never got around to writing it. The login screen can be bypassed by using the SharePoint app: use the app to add a SharePoint list, open that tab first, return to the Website tab and now it loads without the login screen. It might not be much of an issue, although it is inconvenient for your users. You put in the URL for the SharePoint page and that's it! This works very well in the browser, but in the desktop app you occasionally get hit with a login screen: Standard available apps in a Microsoft Teams team You can use it to display any (literally any, not just SharePoint) URL as a tab in a Microsoft Teams team. Sometimes it's simple as Microsoft Teams comes with the Website app. Let's assume we want to show the page at the following URL: Use the Website app It seems the SharePoint app in Teams has a similar limitation: you can only show pages and lists from the associated SharePoint site. I've blogged before on how the SharePoint News Connector is limited to publishing news from the SharePoint site associated to the Microsoft Teams team, and how to work around it.
