I have been struggling with this issue for quite some time without finding an answer. Basically, I have thousands (roughly 10k) of PDFs in a folder to which I need to grant viewing permission, each pdf to a unique email address. For example
PDF1 ---> to email A
PDF2 ---> to email B
and so on
I managed via script to get the URL for every single file and create a sheet that has basically 2 columns: URL and Email address. What I cannot manage to achieve is to give viewing permission to the email via app script.
This URL then will be sent to every email individually via another automation
Could you please help me to understand how to achieve it?
thanks a lot in advance