We have a Windows client application that integrates with OneDrive via the Graph REST API. Recently we began adding support for content that has been shared with the current user, specifically folders. We can access those items via:
GET https://graph.microsoft.com/v1.0/me/drive/sharedWithMe
but have run into an issue accessing the items that are returned. When I try:
GET https://graph.microsoft.com/v1.0/drives/RemoteDriveID/items/RemoteItemID/children
I get a 404 error with "The resource could not be found." When I try to put the remote site ID in there (both just the site ID and the triplet described here) in this format:
GET https://graph.microsoft.com/v1.0/sites/RemoteSiteID/drives/RemoteDriveID/items/RemoteItemID
I get a 400 error with "Provided id is not suitable for the current host". All IDs that I'm using are from the remoteItem facet, as per the documentation. Our App has Files.ReadWrite.All and Sites.ReadWrite.All permissions. All other calls to the server work so it's not an OAuth or basic request issue. From other posts it seems like other people either don't have this issue or never got their problem got resolved.
Our end-goal is to have a folder shared with a user that our app syncs content to and from.