Get all user file shared with SharePoint Online

%3CLINGO-SUB%20id%3D%22lingo-sub-1772310%22%20slang%3D%22en-US%22%3EGet%20all%20user%20file%20shared%20with%20SharePoint%20Online%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1772310%22%20slang%3D%22en-US%22%3E%3CP%3EHi%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20I%20get%20suggestion%20on%20how%20to%20get%20all%20user%20(including%20external%20user)%20with%20whom%20the%20file%20is%20shared%20with%20using%20power%20shell.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1772310%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Contributor

Hi,

 

Can I get suggestion on how to get all user (including external user) with whom the file is shared with using power shell.

 

1 Reply
Highlighted

One way to do this is to use the Graph API's permissions endpoint: https://docs.microsoft.com/en-us/graph/api/resources/permission?view=graph-rest-1.0