Forum Discussion
Divyang Patel
Dec 20, 2017Copper Contributor
External sharing link for all documents in doc library
Hi Everyone,
Recently we migrated around 20K documents from Box to SharePoint online document library but my job is to create the View-only link for external users for each document.
I'm not...
Rob Ellis
Dec 21, 2017Bronze Contributor
It looks like you can use the Graph API to create the links - see here:
https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/driveitem_createlink
It doesn't look like you can do it natively in PowerShell, but you could call out to the Graph API from PowerShell.
https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/driveitem_createlink
It doesn't look like you can do it natively in PowerShell, but you could call out to the Graph API from PowerShell.
Divyang Patel
Jan 01, 2018Copper Contributor
Hi Rob Ellis,
I tired Graph API however, It didn't work out well for me. Do you have any instruction or guide for the same? I've registered the app and updated the permissions too but still unable to generate the links.
- Rob EllisJan 02, 2018Bronze ContributorI'm afraid not. I just found the original link I posted. I've no experience of it myself.