Can I automate notebook tagging based on workspace folder structure?

EllaClark
New Contributor II

Hi all,

I’m currently organizing a growing number of notebooks in our Databricks workspace and trying to keep things manageable with proper tagging and metadata. One idea I had was to automatically apply tags to notebooks based on their folder structure — for example, if a notebook is under /Projects/Marketing, it gets a “marketing” tag.

Is there a way to automate this using the REST API or a workspace scanner script? I know there are some workspace management tools, but I haven’t seen much around dynamic tagging.

Thanks in advance for any tips!