Multi-tenant setup for sharepoint v8 for filepicker

Aleksi Pulkkanen 0 Reputation points
2023-01-31T08:43:42.56+00:00

Hi

We're developing a Teams app that's used across multiple tenants. We would like to provide the ability for user's to link files from their onedrive/sharepoint in our app.

We'd like to implement new filepicker v8, but the problem is implementing the file picker with a multi-tenant approach and getting the user's SharePoint base URL.

Related article promisingly says "You may optionally configure this application for multitenant but this is outside the scope of this article". We have tried, but we're unable to locate any article telling more details about this.

Any ideas or links to more info about how to get this multi-tenant approach done for the filepicker v8?

Thanks,

Aleksi

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,186 questions
OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,128 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,741 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. AllenXu-MSFT 20,666 Reputation points Microsoft Vendor
    2023-02-01T02:07:20.9633333+00:00

    Hi @Aleksi Pulkkanen ,

    You'll undertake the four steps needed to convert a single tenant app into an Azure AD multi-tenant app:

    • Update your application registration to be multi-tenant
    • Update your code to send requests to the /common endpoint
    • Update your code to handle multiple issuer values
    • Understand user and admin consent and make appropriate code changes

    Reference: Making your application multi-tenant.

    You can also refer to the sample: Build a multi-tenant SaaS web application that calls Microsoft Graph using Azure AD and OpenID Connect.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Alex 0 Reputation points
    2024-07-18T22:04:23.51+00:00

    Hopefully this can help someone else, but I left a detailed comment here, https://github.com/OneDrive/onedrive-api-docs/issues/1858#issuecomment-2237572053, that explains how to get multitenant access working for the v8 file picker.

    0 comments No comments

  3. Alex 0 Reputation points
    2024-07-18T22:05:16.4333333+00:00

    Whoops, double post, but it doesn't appear I can delete answers 🤷.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.