
I'm runing into a wired situation. we have a bunch of files that are shared via libaries. And we want users that only have view access to the files to be able to share the files via email. The problem we have is that if the public link isn't already generated then view only users will get an error saying they don't have permisions to complete the current action. But if the file owner or the libary adminstrator goes and genrates the link then the viewers can share no problem.
So I'm trying to do one off two things:
- Allow view only users to generate these links automatically
- Or have the link be generated on creation of the file or file version.
The problem I have been runing into is that even with the permisons of DeliverContent and Create Public Links view only users can't generate the link.
Also I tried to create the ContentDistribution via Apex but even though it creates a link it doesn't create the "Anyone with a Link" sharing setting. Im guesssing there is another step but I can't find any documentation on it.
When you click the share with link or create public link button it does create a ContentDistribution.
Any One else run into this problem?

Thanks. I didnt know that. But we need a link on the file level becasue we share the content with our customers. We shouldn't send out entire folders.