SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.23k stars 992 forks source link

Is there a supported way to programmatically add an SPFx tab in Teams channel via Graph API? #7438

Closed CloudDesignBox closed 2 years ago

CloudDesignBox commented 2 years ago

What type of issue is this?

Question

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

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

Target SharePoint environment

SharePoint Online

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

Additional environment details

Graph API to provision SPFx tabs (e.g. via C# Azure functions, PowerShell, other methods).

Issue description

There is documentation on how to add the following tabs programmatically - https://docs.microsoft.com/en-us/graph/teams-configuring-builtin-tabs

There is no documentation on adding SPFx tabs. You can add a document library or a web page but not a tab deployed via SPFx. This would be really useful when provisioning teams and extending the Teams experience.

Added this after speaking to @VesaJuvonen https://twitter.com/vesajuvonen/status/1452610198900809731

Thanks, Tony

ghost commented 2 years ago

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

lucabandMSFT commented 2 years ago

hey @CloudDesignBox, yes: adding an SPFx based tab using Microsoft Graph APIs is supported only when added in a non configured state. configuration will then need to happen upon user visiting the tab.

I've submitted a change in the documentation to reflect that.

CloudDesignBox commented 2 years ago

Thank you for the clarification @lucabandMSFT! Do you know if there is any plans to enable API setup of SPFx tabs (or even just the SharePoint page tab)? Using the website tab as suggested requires the user to sign-in again which is not the case with Viva Connections or the official SharePoint tabs. It means provisioning teams at scale for education and business is lacking the ability to customise the channel tabs programmatically. Thanks!

ghost commented 2 years ago

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues