Forum Discussion
GK-Codes
Apr 09, 2024Copper Contributor
How to list folders shared with me in one drive using REST API
I am using One Drive REST API to list the files and folders for any given user. I am using bearer token for auth with client_credentials grant. My requirement is to fetch the list of files and folders for any user in my organization.
I am using the following REST API This works fine and gives me the expected result
GET /users/{userId}/drives/items/{folderId}/children
I would like to know how to get the files and folders shared with an user using the client_credentials grant. The documentation only has details to get sharedWithMe files for the current logged in user using the following route.
GET /me/drive/sharedWithMe
This does not serve my purpose, I would like to list the files and folders shared with any user using the userId and driveId.
Thanks in advance
No RepliesBe the first to reply