Can I automate notebook tagging based on workspace folder structure?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
@EllaClark wrote: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 of 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!
Anyone please...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Hi @EllaClark,
Yes, you can automate tagging of Databricks notebooks based on folder structure using the REST API and a script. Use the Workspace API to list notebook paths, extract folder names, and treat them as tags.
If the API supports metadata updates in your environment, you can apply tags directly. Otherwise, maintain a separate path to tag mapping. You can also schedule this as a Databricks Job to keep tags up to date as your workspace changes.

