0

I am setting up a graph api in order to access oneDrive and read/write files. I am trying to setup all this for our customer organisation, they added me as a guest user. When I want to access their oneDrive, I get authorization error(accessDenied). I am wondering do they need to give me specific permission? In app registration we set this option Accounts in this organizational directory only (XXXX only - Single tenant) shall we change it to Accounts in any organizational directory (Any Azure AD directory - Multitenant)

{ "error": { "code": "accessDenied", "message": "There has been an error authenticating the request.", "innerError": { "request-id": "2af585b1-0f26-4815-9997-4328260287da", "date": "2019-09-20T11:48:45" } } }

Mirana
  • 37
  • 1
  • 8

1 Answers1

0

Combined with your other question, I guess you seem to want to access the files in the customer tenant through a personal account with Microsoft Graph API.

You need to Control external sharing for OneDrive and ask your customer to share the file with your personal account.

After that, refer to the steps I sent in above post.

Allen Wu
  • 15,529
  • 1
  • 9
  • 20