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 sits on the board of TekkiGurus, is an advisor for both revealit.TV and WellnessWits, and provides channel and marketing services for Microsoft partners. He hosts the quarterly #CollabTalk TweetJam, the weekly #CollabTalk Podcast, and the Microsoft 365 Ask-Me-Anything (#M365AMA) series.