Set same shared properties for all files in folder

Brass Contributor

Hi there,

 

Is it possible to "bulk share" all files in a folder? That is, I'd like to make it so that all my pdf files in this folder have a share expiration of 31October, cannot be edited and cannot be download. 

 

Is there a way I can do this other than going through each one by one? 

 

Many thanks, 

Michelle

3 Replies

Why not share the folder itself? But no, you can only share one file at a time via the UI, so your only option will be some programmatic solution based on the Graph API/CSOM.

@Vasil Michev I could not just share the folder because I link to the various files from a word document. Also, I wanted to prevent downloading, and that is not possible on the folder level. Thank you once again for your answer. 

Right, well then I'm afraid you'll have to do it on a per-file basis.