Description
Context:
OS: 10.0.17763
PS: 7.5.1
PnP.PowerShell: v3.1.0
Microsoft.Graph: v2.28.0
Microsoft Teams: 25094.310.3616.953
SharePoint Online
Scenario:
Add a tab in teams that displays a document library
Method 1: SharePointPageAndList
add-pnpteamstab -team [redacted-group-id] -channel General -displayname Storage -type SharePointPageAndList -WebSiteUrl https://contoso/Storage
Behaviour: success. tab is added and library content is shown. however, it's a content frame, which doesn't look and is different from the ootb DocumentLibrary tab type
Method 2: DocumentLibrary
add-pnpteamstab -team [redacted-group-id] -channel General -displayname Storage -type DocumentLibrary -contenturl https://contoso/Storage
Behaviour: Command runs without errors, tab is created, but never visible in the UI in teams.
View all tabs:
get-pnpteamstab -team [redacted-group-id] -channel General
Id DisplayName
a160dae9-c5d7-4726-8fe3-f03d87cc1f64 Storage
Print tab created via DocumentLibrary type configuration:
EntityId :
ContentUrl : https://contoso/Storage
RemoveUrl :
WebsiteUrl :
I believe that the same command used to work not long ago, perhaps something changed (?)
Can someone give it a try and let me know if it's something I'm doing or a generalized issue?
Thanks.
Note: also looking into the graph (https://learn.microsoft.com/en-us/graph/teams-configuring-builtin-tabs#document-library-tabs), perhaps I'll have better luck there
Update: 04/06/2025
I have reproduced the same with graph, tab is created, is listed with powershell but nowhere to be seen in Teams
$params = @{
displayName = "Storage"
"[email protected]" = "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/com.microsoft.teamspace.tab.files.sharepoint"
configuration = @{
entityId = ""
contentUrl = ($siteUrl + "/" + "Storage")
websiteUrl = $null
removeUrl = $null
}
}
New-MgTeamChannelTab -TeamId $groupId -ChannelId $channel.Id -BodyParameter $params
Update: 05/06/2025
After further testing, it appears that the tabs are being added via both graph and pnp, and are displayed in Teams for the Web (https://teams.microsoft.com/) but "unconfigured".
Once the tab is clicked, it appears to configure the tab propertly (it briefly shows the library selector dialog and then displays the library content), which makes it immediately available in the Teams client application.
The tab "type" or "TeamsApp" also appears to switch from "DocumentLibrary" to "SharePoint" after the tab gets clicked.
In the meantime I opened a ticket with Microsoft and will share the outcome here.