<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Service Principal Access to Users Directory in Databricks - Creating Git Folders in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105564#M9516</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/142076"&gt;@Brianhourigan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you please DIM your suggestions? I can add it to our internal AHA idea.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Jan 2025 12:35:09 GMT</pubDate>
    <dc:creator>Alberto_Umana</dc:creator>
    <dc:date>2025-01-14T12:35:09Z</dc:date>
    <item>
      <title>Service Principal Access to Users Directory in Databricks - Creating Git Folders</title>
      <link>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105063#M9512</link>
      <description>&lt;P class=""&gt;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/).&lt;/P&gt;&lt;P class=""&gt;Current Setup:&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;Service Principal with workspace admin permissions&lt;/LI&gt;&lt;LI&gt;GitHub Actions workflow using Databricks CLI&lt;/LI&gt;&lt;LI&gt;Command attempting folder creation: databricks workspace mkdirs "/Workspace/Users/username"&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;Error: Error: Folder Users is protected&lt;/P&gt;&lt;P class=""&gt;Note: Creating Repos (not git folders) works using the Service Principal, but users can't modify them - highlighting a gap in both approaches.&lt;/P&gt;&lt;P class=""&gt;Questions:&lt;/P&gt;&lt;OL class=""&gt;&lt;LI&gt;Can service principals create git folders under /Workspace/Users/?&lt;/LI&gt;&lt;LI&gt;Is there a recommended approach for this automation?&lt;/LI&gt;&lt;LI&gt;Are features planned to support this workflow?&lt;/LI&gt;&lt;/OL&gt;&lt;P class=""&gt;Goal: Automated git folder creation in developer workspaces with proper user permissions&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 18:51:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105063#M9512</guid>
      <dc:creator>Brianhourigan</dc:creator>
      <dc:date>2025-01-09T18:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Service Principal Access to Users Directory in Databricks - Creating Git Folders</title>
      <link>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105064#M9513</link>
      <description>&lt;P class="p1"&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/142076"&gt;@Brianhourigan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;Can service principals create git folders under /Workspace/Users/?&lt;/P&gt;
&lt;UL class="ul1"&gt;
&lt;LI class="li1"&gt;No, service principals cannot create folders under /Workspace/Users/ as this directory is protected. This is why you are encountering the "Error: Folder Users is protected" message.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p1"&gt;Is there a recommended approach for this automation?&lt;/P&gt;
&lt;UL class="ul1"&gt;
&lt;LI class="li1"&gt;One option is to create a top-level directory for each user under a different path that is not protected, such as /Workspace/Projects/username/. This way, you can manage permissions and automate the creation of these directories without running into the protected folder issue.&lt;/LI&gt;
&lt;LI class="li1"&gt;
&lt;P class="p1"&gt;Are features planned to support this workflow?&lt;/P&gt;
There is no planned features to support the creation of git folders under /Workspace/Users/ by service principals, I will create one.&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 09 Jan 2025 18:58:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105064#M9513</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-09T18:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: Service Principal Access to Users Directory in Databricks - Creating Git Folders</title>
      <link>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105068#M9514</link>
      <description>&lt;P&gt;Thank you Alberto. for your reference you can include the following in the feature request.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request: Enable service principals to create git folders in user workspaces for secure GitHub synchronization, supporting:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Developer creates feature branch&lt;/LI&gt;&lt;LI&gt;Service principal manages synchronisation&lt;/LI&gt;&lt;LI&gt;Automated git folder creation in user workspace&lt;/LI&gt;&lt;LI&gt;Proper permission inheritance&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;This maintains security through centralized authentication while enabling automated workflows that meet enterprise security requirements.&lt;/P&gt;&lt;P&gt;if you need more information I can provide.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 19:13:20 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105068#M9514</guid>
      <dc:creator>Brianhourigan</dc:creator>
      <dc:date>2025-01-09T19:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: Service Principal Access to Users Directory in Databricks - Creating Git Folders</title>
      <link>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105545#M9515</link>
      <description>&lt;P&gt;Alberto can you give me a link to the feature request if it's on any of your Github repos? I'd like to provide more information. Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 09:50:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105545#M9515</guid>
      <dc:creator>Brianhourigan</dc:creator>
      <dc:date>2025-01-14T09:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Service Principal Access to Users Directory in Databricks - Creating Git Folders</title>
      <link>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105564#M9516</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/142076"&gt;@Brianhourigan&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Can you please DIM your suggestions? I can add it to our internal AHA idea.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 12:35:09 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105564#M9516</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-14T12:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Service Principal Access to Users Directory in Databricks - Creating Git Folders</title>
      <link>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105565#M9517</link>
      <description>&lt;P&gt;Hi Alberto sure.&lt;/P&gt;&lt;P&gt;I'll draw out the flow and my thoughts. and send it on&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jan 2025 12:36:28 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/service-principal-access-to-users-directory-in-databricks/m-p/105565#M9517</guid>
      <dc:creator>Brianhourigan</dc:creator>
      <dc:date>2025-01-14T12:36:28Z</dc:date>
    </item>
  </channel>
</rss>

