Skip to content

The SharePoint document library tab in a Teams channel added via Graph API is 50% broken 50% of the time from Summer 2021 #7462

@CloudDesignBox

Description

@CloudDesignBox

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

Windows

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

C# Azure Functions running batch Graph API v1 calls to add tabs to channels in Teams.

Describe the bug / error

In half of all provisioned tabs, the user cannot create a new folder or document.
image
Looking at the network traffic, I can see it seems to be finding an incorrect library ID (we only pass a URL when setting up the tab as a parameter).
Request URL: https://teams.microsoft.com/api/mt/emea/beta/channels/19:NSCIdOTjPDJq5UDWudWT-4Ormib_rkAlgSawr_SJZ7Y1@thread.tacv2/sharepoint/files/folders?parentServerRelativeUrl=%2Fsites%2FCPP_Subjects_6%2FShared%20Documents&teamSiteUrl=https%3A%2F%2Fclouddesignboxltd.sharepoint.com%2Fsites%2FCPP_Subjects_6&itemName=tgest&libraryId=**C3A1D495F3804C3E925321ABC9913BB8**
Request Method: POST
Status Code: 403
If the tab is added manually, looking at the network call, the library ID is different. Seems to be an issue between the internal Teams API calling the library and getting the wrong ID.

Steps to reproduce

@apringle to supply more details on APIs called.

Batch call to add SharePoint library tabs to channels

POST https://graph.microsoft.com/V1.0/teams/{groupId}/channels/{channelId}/tabs

{
"teamsApp@odata.bind": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/com.microsoft.teamspace.tab.files.sharepoint",
"name": "test",
"sortOrderIndex": "10",
"configuration": {
"contentUrl": "https://contoso.sharepoint.com/sites/test/libraryName"
}
}

Expected behavior

The libraries are expected to work even when creating documents/folders. However, half of the tabs error when creating folders or new documents.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APItype:archive-old-issueIssues which are closed as tool old for active worktype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions