Forum Discussion
klassenkbrandonu
Feb 07, 2024Copper Contributor
Report on Sharing links for "People in your organization"
Hi, I'm needing to be able to get a list of active sharing links with "People in your organization", as the permission from within our 365 Sharepoint instance. All advice I can find points to var...
BarryGoblon
Feb 15, 2024Iron Contributor
klassenkbrandonu The most comprehensive way is to use Microsoft Graph API to query all sharing links. You can filter by the type "organization" to only get links shared with people in your organization:
GET https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/items/{item-id}/driveItem/permissions
This will return all active sharing links for that site, list or item. You can tweak the query to meet your specific needs. Also I have heard about some third-party tools doing this work, though I will not promote them here.