OneDrive and SharePoint File Picker v8 for multi tenant

Rodin Aleksandr 0 Reputation points
2023-02-09T15:46:52.42+00:00

We are integrating SharePoint file picker v8 using the procedures outlined in the instructions here.

We are going to allow all microsoft accounts, personal accounts and M365 accounts as well. I have setup everything and followed the instructions to setup on our React app.

The issues we are facing:

  • With the multi tenant setup on the Azure application setup, when user logs in with the personal account, it says that personal account is not allowed. Multi tenant setup works fine for the v7.2 filepicker and regular authentication workflow, but it doesn't work on the v8
  • We need to get the baseUrl(based on the instructions) to get picker configuration and render on the iframe. We could use the Get Root Site GraphQL Api. I could get the webURL for each user authenticated with access token, but this API doesn't work with personal account. I would like to know how to setup baseUrl for personal accounts.
  • Our app would have authentication mechanism already with the Microsoft oauth2, which means we have access token from users. When user opens the filepicker, is it required to user authenticate and consent the permissions again?
  • I have tried with v7.2 and it works fine, but it doesn't support iframe mode and it asks consent everytime even with the access token granted permission. I saw the github issue that it's now suppored by the v7.2 onedrive picker so going to move with v8.

Regards,

OneDrive
OneDrive
A Microsoft file hosting and synchronization service.
1,137 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,026 questions
{count} votes

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.