Forum Discussion
AlejandroGombao
Aug 06, 2024Copper Contributor
Report all existing Sharing Links in all SharePoints
Hello, We are planning a complete cross-tenant migration, and need to somehow get a list of all existing Sharing Links in all of our (over 150) SharePoint sites, and which people (emails) are thos...
luisbernardi
Aug 29, 2024Copper Contributor
Hi, not sure if it is too late. Joined the community today.
I think a way could be by iteration of all the groups that have the name starting with sharing link, then get the members of those groups which should allow you to get their emails.
The only challenge maybe that the sharing link groups tend to be created with the setting to only allow to be queried by the members, so if you are trying to get the members you may get an "access denied" error. The workaround could be adding your account or the service account you are using to run your scripts as members of all those sharing links groups . Alternatively, (and probably cleaner) you could change the settings that allows everyone to get members of each sharing links group. This may help.