I have utilized the OneDrive JS picker and after the user selects an item, it will query for the permissions, using the route below, per the permissions reference.
GET: https://graph.microsoft.com/v1.0/drive/items/{item-id}/permissions
This works fine for items in personal OneDrive, but when working with items from OneDrive for business/sharepoint, the resulting HTTP response code is a 404.
I tried using the domain of the sharepoint file (e.g. https://sample-my.sharepoint.com) but that didn't work either. Is there a different domain that can be used?
I realize this is similar to Hanan Levy's question Get items permissions in OneDrive for Business using microsoft Graph API except that the response code I receive is 404 (File not found) while he reports the response has an error code and message (perhaps in response body).
EDIT: Per the request of Brad, below are the response headers Date and request-id, along with a screenshot containing the Request with response headers:
Date:Thu, 08 Dec 2016 19:02:47 GMT
request-id:3b2fe7b5-7ffc-4cc6-9853-e13150297186
request-id
header in the response along with the value of theDate
header we can take a closer look. – Brad