Forum Discussion

kikogeruk's avatar
kikogeruk
Copper Contributor
Jul 04, 2024

Adding SharePoint tab using graph not possible when pointing to folder

Hi all,

we are struggling to find a solution for this issue:

 

  1. We need to add a SPO folder as a tab to Team channel using Graph;
  2. We cannot use the website tab, as it produces authentication issues (401 - Unauthorized);
  3. It works fine when adding a library, but when adding a folder extension, this does not work and returns "Not Found";
  4. When trying to patch a folder path over an existing tab, it works for a couple of seconds and then reverts back to just the library.

Did anyone get this to work? Below our call:

 

https://graph.microsoft.com/beta/teams/[team]/channels/[channel]/tabs

{
    "displayName": "[name]",
    "email address removed for privacy reasons": "https://graph.microsoft.com/v1.0/appCatalogs/teamsApps/com.microsoft.teamspace.tab.files.sharepoint",
    "configuration": {
        "entityId": "",
        "contentUrl": "https://[domain].sharepoint.com/sites/[site]/Shared%20Documents/General",
        "websiteUrl": "https://[domain].sharepoint.com/sites/[site]/Shared%20Documents/General"
    }
}

 

Has anyone managed to get this to work or reliably overcome the Unauthorized issue?


Cheers 🙂

Max

No RepliesBe the first to reply

Resources