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
Dec 21, 2017Copper Contributor
Rob Ellis thanks a lot for your reply. I think this should do the job.