0
votes

Shared with me API provides me the list of all files and folders that are shared by internal and external users. The Shared API URL is mentioned below https://docs.microsoft.com/en-us/graph/api/drive-sharedwithme?view=graph-rest-1.0&tabs=http

But when I try to access the shared DriveItem resource of the file that has been shared by the external user bypassing DriveID and File ID into the API /drives/{remoteItem-driveId}/items/{remoteItem-id} The API throws an error as -

{
"error": {
"code": "itemNotFound",
"message": "Item not found",
"innerError": {
"date": "2020-10-20T12:07:39",
"request-id": "5a3b3836-fe3e-450a-837e-1b3e962ac94b",
"client-request-id": "5a3b3836-fe3e-450a-837e-1b3e962ac94b"
}
}
}

But the Same API works fine with the file shared with Internal Users. Am I missing something here any help is greatly appreciated?

Regards, Kuldeep K

1
For external tenants make sure you append ?allowexternal=true according to the public document and then give a try.Shiva Keshav Varma
Did it work for you?Shiva Keshav Varma
Moving this to Answer.Shiva Keshav Varma

1 Answers

0
votes

For external tenants make sure you append ?allowexternal=true according to the public document and then give a try.