Forum Discussion
Getting Link to a Document with Modern Document Libraries
- Sep 09, 2016
There is a way to disable the 'Edit' and 'View' link feature. The only link that appears then is the restricted link.
Go to site settings -> Site permissions -> Access Request Settings -> Disable Allow members to share the site and individual files and folders.
This would prevent the breaking of permission.
Anyone know which version the link doesn't cause the permissions for the doc to immediately change?
I really don't understand why the "get a link" feature causes the permissions inheritance for the document to be changed. As noted earlier in the thread, what people want to do is to get a URL for a doc to be able to send to somone else. In most cases they don't need or even want it to expire and they most certainly don't want (or even know) that "getting a link" also means "get a link and change the permissions on the doc".
The "Restricted Link" is the only one that doesn't change permissions.
The out of the box setting is for an Edit link to be created by default. You can change that to the "Direct" link (Restricted) in SharePoint Admin > Sharing
note: updated - the setting should be Direct not Internal as previously posted.
as seen here:
This setting saves a lot of permissions headaches.
- Aug 30, 2016
I checked and our tenant settings are to "internal" - but when I choose Get a Link, the "Edit Link" the default and I believe immediately breaks the permissions inheritance. If I subsequently choose the View Link or Restricted Link options the doc inheritance is still broken.
- Eric AdlerAug 30, 2016Iron Contributor
Sorry Kevin, my bad, the setting needs to be "Direct" on the farm to avoid the auto generated links that break the permissions.
Also, this only appears to work from a modern document library. Using the feature on a web part seems to break permissions.
- Gregory FrickAug 31, 2016Iron Contributor
Thanks for leading this discussion Eric Adler. I appreciate all the information you provided. The key takeaways for me are the bit about the restricted link and the tenant settings for the default link type. This is the kind of thing that can really impact User Experience.