<?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: Python module import with Dedicated access mode in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/python-module-import-with-dedicated-access-mode/m-p/127591#M10496</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;! I confirm that's a permission issue and assigning "CAN MANAGE" solves it.&lt;/P&gt;&lt;P&gt;I still find it not really intuitive, since the goal is to use a shared cluster (with ML runtime) for development purposes. I mean, it would make sense when following the recommended approach of storing your code in "&lt;SPAN&gt;/Workspace/Groups/&amp;lt;groupName&amp;gt;", but for the integration with Git Folders it really adds some complexity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The whole team assigned to the group will need to grant access to their Git Folders&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 06 Aug 2025 15:02:04 GMT</pubDate>
    <dc:creator>FedeRaimondi</dc:creator>
    <dc:date>2025-08-06T15:02:04Z</dc:date>
    <item>
      <title>Python module import with Dedicated access mode</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-module-import-with-dedicated-access-mode/m-p/127574#M10493</link>
      <description>&lt;P&gt;I currently have a repo connected in databricks and I was able to correctly import a python module from src folder located in the same root.&lt;/P&gt;&lt;P&gt;Since I am using a Machine Learning runtime, I am force to choose a &lt;EM&gt;Dedicated (formerly: Single user)&lt;/EM&gt; access mode. The module import works when I use directly my user, but if I change this into a group (to which I'm part of) then "src" module can't be find.&lt;/P&gt;&lt;P&gt;The weird thing is that when I run sys.path, I get the same exact list of paths.&lt;/P&gt;&lt;P&gt;So I am probably missing some knowledge of how the access works when using a ML runtime and assigning a group instead of a single user. Is there a way to import correctly the module?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 13:43:45 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-module-import-with-dedicated-access-mode/m-p/127574#M10493</guid>
      <dc:creator>FedeRaimondi</dc:creator>
      <dc:date>2025-08-06T13:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python module import with Dedicated access mode</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-module-import-with-dedicated-access-mode/m-p/127578#M10494</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/170768"&gt;@FedeRaimondi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;It could be permission issue. According to documentation,&amp;nbsp;when a compute resource has Dedicated access, the resource can be assigned to a single user or a group. When assigned to a group (a group cluster), the user's permissions automatically down-scopes to the group's permissions, allowing the user to securely share the resource with other members of the group.&lt;BR /&gt;So maybe when you setup repo as a user the group has no access to that because of this down-scoped behaviour.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/machine-learning/databricks-runtime-ml#access-mode-for-databricks-runtime-ml-clusters" target="_blank" rel="noopener"&gt;Databricks Runtime for Machine Learning | Databricks Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I think this could be the case:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;For example, the&lt;STRONG&gt; group needs explicit permission&lt;/STRONG&gt; to query a table, access a secret scope or secret, use a&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Unity Catalog&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;connection credential, &lt;STRONG&gt;access a Git folder&lt;/STRONG&gt;, or create a workspace object."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://docs.databricks.com/aws/en/compute/group-access#permissioning-behavior-on-group-clusters" target="_blank"&gt;Assign compute resources to a group | Databricks Documentation&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And you can check also best practices for managing group clusters:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/aws/en/compute/group-access#best-practices-for-managing-group-clusters" target="_blank" rel="noopener"&gt;Assign compute resources to a group | Databricks Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 14:35:32 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-module-import-with-dedicated-access-mode/m-p/127578#M10494</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-08-06T14:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python module import with Dedicated access mode</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-module-import-with-dedicated-access-mode/m-p/127591#M10496</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/110502"&gt;@szymon_dybczak&lt;/a&gt;&amp;nbsp;! I confirm that's a permission issue and assigning "CAN MANAGE" solves it.&lt;/P&gt;&lt;P&gt;I still find it not really intuitive, since the goal is to use a shared cluster (with ML runtime) for development purposes. I mean, it would make sense when following the recommended approach of storing your code in "&lt;SPAN&gt;/Workspace/Groups/&amp;lt;groupName&amp;gt;", but for the integration with Git Folders it really adds some complexity.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The whole team assigned to the group will need to grant access to their Git Folders&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 15:02:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-module-import-with-dedicated-access-mode/m-p/127591#M10496</guid>
      <dc:creator>FedeRaimondi</dc:creator>
      <dc:date>2025-08-06T15:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: Python module import with Dedicated access mode</title>
      <link>https://community.databricks.com/t5/get-started-discussions/python-module-import-with-dedicated-access-mode/m-p/127594#M10497</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/170768"&gt;@FedeRaimondi&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Glad that it worked for you. And I agree with you that it's bit confusing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Aug 2025 15:14:10 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/python-module-import-with-dedicated-access-mode/m-p/127594#M10497</guid>
      <dc:creator>szymon_dybczak</dc:creator>
      <dc:date>2025-08-06T15:14:10Z</dc:date>
    </item>
  </channel>
</rss>

