0

Is there a way, using the rest end points to see if a file has been shared externally or a guest link has been created? I would like to create a way to look at my OneDrive and check all files within to if they have shared.

I am using _api/web/lists/getByTitle(‘My List’)/items to get my files.

I have tried using /_api/web/GetFileByServerRelativeUrl(file relative URL’)/ListItemAllFields/roleassignments but this doesn’t see to give me anything related to external sharing. I checked the file before and after sharing and the role assignements were the same. I am guessing this is correct because an anonymous guest link wouldn’t have a role assignment.

Any help appreciated thanks!

(Visited 95 times, 1 visits today)
Add a Comment