OneDrive Files Sharing Report All users – Graph API

Bhupal Koushik 21 Reputation points
2022-11-09T14:13:47.277+00:00

Hi Team,

We need to generate a shared files report using graph API at org level within a OneDrive.

Currently we tried to achieve by graph API to loop through all the files and folders and output the permissions into a csv file.

Need help to avoid the loop and identify a graph API endpoint to achieve the above behavior.

Please let us know if any better way to achieve the above requirement.

Thanks in advance.

Microsoft Security Microsoft Graph
0 comments No comments
{count} votes

Accepted answer
  1. Srinivasa Rao Darna 6,761 Reputation points Microsoft External Staff
    2022-11-09T14:35:19.07+00:00

    Hi @Bhupal Koushik ,

    With Microsoft Graph drive-sharedwithme, will get driveItems shared with a specified user.

    GET /users/{user-id}/drive/sharedWithMe  
    

    Additionally, you can also refer to reportroot-getonedriveusagefilecounts

    Hope this helps.
    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.