I am trying to automate the creation of git folders in user workspace directories triggered by GitHub feature branch creation. When developers create feature branches in GitHub, we want a service principal to automatically create corresponding git folders in their Databricks workspace (/Workspace/Users/username/).
Current Setup:
- Service Principal with workspace admin permissions
- GitHub Actions workflow using Databricks CLI
- Command attempting folder creation: databricks workspace mkdirs "/Workspace/Users/username"
Error: Error: Folder Users is protected
Note: Creating Repos (not git folders) works using the Service Principal, but users can't modify them - highlighting a gap in both approaches.
Questions:
- Can service principals create git folders under /Workspace/Users/?
- Is there a recommended approach for this automation?
- Are features planned to support this workflow?
Goal: Automated git folder creation in developer workspaces with proper user permissions