I'm working with microsoft graph rest api.
I'm using : /me/drive/sharedWithMe but it's not return the shared file/folder from external .
How can i get the sahred from external users?
I'm working with microsoft graph rest api.
I'm using : /me/drive/sharedWithMe but it's not return the shared file/folder from external .
How can i get the sahred from external users?
@ngThDn-5282, Can you check and confirm if you have the following permissions in place:
Delegated (work or school account) Files.Read.All, Files.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All
Delegated (personal Microsoft account) Files.Read.All, Files.ReadWrite.All
Application Files.Read.All, Files.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All
Reference Article: https://docs.microsoft.com/en-us/onedrive/developer/rest-api/resources/shareddriveitem?view=odsp-graph-online
If these permissions are in place and still the api is not returning and thing then I would like to know what exact error you are getting when you call the api.
There is a shared resource on the driveitem. You should be able to filter on that property to find files and folders shared with other people.
Hope this helps.
Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.
These permissions are in place.
The error is: It just return what i was shared from user in my domain (xoontec-my.sharepoint.com) , but not return the shared folder from user externally (https://sabainet-my.sharepoint.com/)
@ngThDn-5282, This would need some deeper troubleshooting as it looks like and it wont be possible to troubleshoot this over the forum. I would request you to create a support case with our Support Team, so that they can help you further.
In case you face difficulties creating a case, do drop an email to azcommunity[at]microsoft[dot]com with the following details:
Tenant Name/ID:
Subscription ID:
Application ID/Name:
Do share these details and do not forget to share the URL of this thread, so that its easier for us to identify the email and help you further.
Hi @ngThDn-5282
Just checking to see if you were able to sync offline and get this resolved?
If so, please remember to share the solution and "mark as answer" so that others in the community facing similar issues can more easily find a resolution.
6 people are following this question.