How do we get the permission report for a particular SharePoint file. Now with change in Sharing experience in Modern SharePoint, there are many aspects like external sharing, direct sharing, sharing via link etc for sharing unlike the conventional sharing which was there before. With easiness comes responsibility, right? How do we get the permission report using REST API.
There is a method called
GetSharingInformation which you is part of SharePoint List Item REST API which could be called. This will give you an output which has detailed information about Shared links, principals with whom the file has been shared with etc. etc. All you need to do is go through the result and fetch the needed information.
So your complete URL would look something like this,
I will be writing another blog which talks about the various properties which are available as an output of the REST call.
Photo by C M on Unsplash