<?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 databricks single user cluster is not able to assign service principals in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/4592#M1273</link>
    <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to set the databricks cluster Access mode to single user and assign the service principal account to the user. &lt;/P&gt;&lt;P&gt;In other words, after creating a single mode cluster, how can I access only servcie principals?&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 04:34:51 GMT</pubDate>
    <dc:creator>17780</dc:creator>
    <dc:date>2023-05-10T04:34:51Z</dc:date>
    <item>
      <title>databricks single user cluster is not able to assign service principals</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/4592#M1273</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to set the databricks cluster Access mode to single user and assign the service principal account to the user. &lt;/P&gt;&lt;P&gt;In other words, after creating a single mode cluster, how can I access only servcie principals?&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 04:34:51 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/4592#M1273</guid>
      <dc:creator>17780</dc:creator>
      <dc:date>2023-05-10T04:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: databricks single user cluster is not able to assign service principals</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/4593#M1274</link>
      <description>&lt;P&gt;Cluster Type is All-purpose Compute&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 04:39:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/4593#M1274</guid>
      <dc:creator>17780</dc:creator>
      <dc:date>2023-05-10T04:39:16Z</dc:date>
    </item>
    <item>
      <title>Re: databricks single user cluster is not able to assign service principals</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/54693#M30147</link>
      <description>&lt;P&gt;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/41419"&gt;@17780&lt;/a&gt;&amp;nbsp;Did you ever figure this out?&amp;nbsp; I am trying to do the same.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 22:44:00 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/54693#M30147</guid>
      <dc:creator>AFox</dc:creator>
      <dc:date>2023-12-05T22:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: databricks single user cluster is not able to assign service principals</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/54956#M30204</link>
      <description>&lt;P&gt;Sure thing! So, if you're looking to set up your data block cluster access mode to a single user and want that user to be a service principal account, you've got a couple of steps ahead. First, create your single-mode cluster. Once that's done, you'll need to assign the service principal account to it. This involves configuring the necessary permissions and access rights for that service principal. After the setup, you should be able to access the cluster using only the service principal account you've designated. It's all about fine-tuning those permissions to ensure that only the right folks (or, in this case, service principals) can get in. Double-check your configurations, and you should be good to go!&lt;/P&gt;&lt;P&gt;Best regards, Zpakerman&lt;/P&gt;</description>
      <pubDate>Sat, 09 Dec 2023 00:47:36 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/54956#M30204</guid>
      <dc:creator>Zpakerman</dc:creator>
      <dc:date>2023-12-09T00:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: databricks single user cluster is not able to assign service principals</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/65528#M32831</link>
      <description>&lt;P&gt;Below solution worked for me!!&lt;BR /&gt;It is not possible to update single user via UI&lt;BR /&gt;But you can update the service principal as the signle user via databricks cli.&lt;BR /&gt;1. install databricks cli&lt;/P&gt;&lt;P&gt;2. run command databricks configure&lt;/P&gt;&lt;P&gt;3. run command:&lt;BR /&gt;# Execute clusters edit Command to Set Service Principal as Single User&lt;BR /&gt;databricks clusters edit &amp;lt;cluster id&amp;gt; &amp;lt;spark version number&amp;gt;--cluster-name "&amp;lt;cluster name&amp;gt;" --data-security-mode SINGLE_USER --single-user-name &amp;lt;client id of the service principal&amp;gt; --num-workers 1 --node-type-id &amp;lt;node type&amp;gt; --no-wait&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2024 16:32:47 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/65528#M32831</guid>
      <dc:creator>SathyaVasu</dc:creator>
      <dc:date>2024-04-04T16:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: databricks single user cluster is not able to assign service principals</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/96675#M39322</link>
      <description>&lt;P&gt;So, here is an alternative to either the UI (doesn't work actually; not possible) or the CLI. Use the Databricks API.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;endpoint_change &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;f&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;databricksURL&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;/api/2.1/clusters/edit"&lt;/SPAN&gt; &lt;SPAN&gt;# change single owner&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;payload_change &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"cluster_id"&lt;/SPAN&gt;&lt;SPAN&gt;: cluster_id&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;"cluster_name"&lt;/SPAN&gt;&lt;SPAN&gt;: cluster_name&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;"single_user_name"&lt;/SPAN&gt;&lt;SPAN&gt;: new_owner &lt;/SPAN&gt;&lt;SPAN&gt;# serv principal user id&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;"num_workers"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;"spark_version"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"14.3.x-cpu-ml-scala2.12" # required; set to what you want&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;"node_type_id"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"r6id.xlarge" #required; set to what you want&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; ,&lt;/SPAN&gt;&lt;SPAN&gt;"data_security_mode"&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN&gt;"SINGLE_USER"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;response &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; requests.&lt;/SPAN&gt;&lt;SPAN&gt;post&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; endpoint_change,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;headers&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;headers,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;json&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;payload_change&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#if you have init scripts running, they should be included in the the json payload as well.&amp;nbsp; (doesn't work setting them in the UI).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;# also be sure the service principal has access to the init script location&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 29 Oct 2024 15:59:18 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-single-user-cluster-is-not-able-to-assign-service/m-p/96675#M39322</guid>
      <dc:creator>Pat_IronBridges</dc:creator>
      <dc:date>2024-10-29T15:59:18Z</dc:date>
    </item>
  </channel>
</rss>

