Can I share SharePoint or OneDrive data based on the name of the file? #M365AMA

In this episode, the #M365AMA panel discusses the following community question:

“I would like to know if it is possible to make the files that I have in sharepoint or onedrive be shared to a specific user automatically depending on the name of the file, that is, if I have a file called “jhon” only Jhon can see it and do the same for thousands of files automatically, thank you very much for your help!”

Check out the discussion here:

 

Participating in this discussion were:

Some relevant notes/links shared by the team:

  • Per Sean, the automated sharing of files based on naming conventions as described isn’t supported by SPO/M365. Custom code could be written to achieve it based on a ruleset, though.

Christian Buckley

Christian is a Microsoft Regional Director and M365 Apps & Services MVP, and an award-winning product marketer and technology evangelist, based in Silicon Slopes (Lehi), Utah. He is a startup advisor and investor, and an independent consultant providing fractional marketing and channel development services for Microsoft partners. He hosts the weekly #CollabTalk Podcast, weekly #ProjectFailureFiles series, monthly Guardians of M365 Governance (#GoM365gov) series, and the Microsoft 365 Ask-Me-Anything (#M365AMA) series.