permissions
1 TopicGraph API - How to Determine Source of OneDrive Permission
When making a call to the OneDrive permission endpoint: /v1.0/me/drive/items/{item_id}/permissions The API returns permissions for the specified item, but also for parents of the specified item, because those can also be used to share the item itself. However, there is no data in the API response to indicate the source of a given permission. Currently, to find the source of a permission, I need to keep executing calls to the permissions endpoint for each parent of the original item, in ascending order, until the given permission is no longer returned. Then I know that the previous item I executed the call for is the one the permission actually belongs to. This is a very hacky solution and extremely inconvenient for my purposes. I've looked for a better solution but haven't found one yet. There has to be a better way than what I'm currently doing...560Views0likes0Comments