<?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: Databricks Job API: The job must have exactly one owner in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/databricks-job-api-the-job-must-have-exactly-one-owner/m-p/104122#M41668</link>
    <description>&lt;P&gt;Thank you for the solution Amit. I have been trying to update the permissions for my workflows since 1 day. I came across your post, changed the structure of the payload and it worked fine. So basically when you do a get request to fetch the ACLs, you get :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'access_control_list': [{'user_name': 'xyz@abc.org', 'display_name': 'Xyz, Fgv', 'all_permissions': [{'permission_level': 'IS_OWNER', 'inherited': False}]}]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But while updating, you need to discard the 'all_permissions' list and add everything inside in the dict. I wonder why it works this way when while&amp;nbsp; fetching the ACLs we get it with the 'all_permissions'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also I have seen if there are any inherited ACL, we do not have to mention that in the payload. It take the permission for that group (eg. admin) automatically.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andolina&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jan 2025 17:30:43 GMT</pubDate>
    <dc:creator>Andolina</dc:creator>
    <dc:date>2025-01-03T17:30:43Z</dc:date>
    <item>
      <title>Databricks Job API: The job must have exactly one owner</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-job-api-the-job-must-have-exactly-one-owner/m-p/99274#M39944</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I'm trying to set the Job Permission using the Databricks Job API but getting the below error.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;{&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;"error_code": "INVALID_PARAMETER_VALUE",&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;"message": "The job must have exactly one owner."&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;EM&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/EM&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I first tried to get the job permission using the below API.&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://adb-xxxxxxx2150.10.azuredatabricks.net/api/2.0/permissions/jobs/18660" target="_blank" rel="noopener"&gt;GET https://adb-xxxxxxx.10.azuredatabricks.net/api/2.0/permissions/jobs/18660&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Below is the response I received.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ameet9257_0-1731984876346.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12980i219EFD471AEB98A5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ameet9257_0-1731984876346.png" alt="ameet9257_0-1731984876346.png" /&gt;&lt;/span&gt;&lt;P&gt;I used these details along with new permission to apply for the Job.&lt;/P&gt;&lt;P&gt;PUT&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://adb-XXXXXXXXXX.10.azuredatabricks.net/api/2.0/permissions/jobs/18660" target="_blank" rel="noopener"&gt;https://adb-XXXXXXXXXX.10.azuredatabricks.net/api/2.0/permissions/jobs/18660&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Body:&lt;/SPAN&gt;&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ameet9257_1-1731985277351.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12981i081B06DED31BDD3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ameet9257_1-1731985277351.png" alt="ameet9257_1-1731985277351.png" /&gt;&lt;/span&gt;&lt;P&gt;Response:&lt;/P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ameet9257_2-1731985298976.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12982iBBDBEC857B2CB6AD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ameet9257_2-1731985298976.png" alt="ameet9257_2-1731985298976.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Let me know if anyone has faced the same issue.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;#databricks #jobs #api&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Nov 2024 03:07:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-job-api-the-job-must-have-exactly-one-owner/m-p/99274#M39944</guid>
      <dc:creator>ameet9257</dc:creator>
      <dc:date>2024-11-19T03:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Job API: The job must have exactly one owner</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-job-api-the-job-must-have-exactly-one-owner/m-p/99276#M39945</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;Right after this post, I tried to monitor the network log by inspecting an element from the UI Browser and found that the UI API is taking different parameters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;"access_control_list"&lt;/SPAN&gt;&lt;SPAN&gt;:[{&lt;/SPAN&gt;&lt;SPAN&gt;"user_name":"xxxxxxx@xxxxxx.com"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"permission_level":"IS_OWNER"&lt;/SPAN&gt;&lt;SPAN&gt;},{&lt;/SPAN&gt;&lt;SPAN&gt;"group_name":"data-scientists-dev"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"permission_level":"CAN_MANAGE"&lt;/SPAN&gt;&lt;SPAN&gt;}]}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Then I used the same body param and was able to set the permission.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ameet9257_0-1731986725626.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/12983iCC3AE4AF566D0CF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ameet9257_0-1731986725626.png" alt="ameet9257_0-1731986725626.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;&lt;DIV&gt;If you guys have any other inputs please do share.&amp;nbsp;&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, 19 Nov 2024 03:27:46 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-job-api-the-job-must-have-exactly-one-owner/m-p/99276#M39945</guid>
      <dc:creator>ameet9257</dc:creator>
      <dc:date>2024-11-19T03:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Job API: The job must have exactly one owner</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-job-api-the-job-must-have-exactly-one-owner/m-p/104122#M41668</link>
      <description>&lt;P&gt;Thank you for the solution Amit. I have been trying to update the permissions for my workflows since 1 day. I came across your post, changed the structure of the payload and it worked fine. So basically when you do a get request to fetch the ACLs, you get :&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;'access_control_list': [{'user_name': 'xyz@abc.org', 'display_name': 'Xyz, Fgv', 'all_permissions': [{'permission_level': 'IS_OWNER', 'inherited': False}]}]&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But while updating, you need to discard the 'all_permissions' list and add everything inside in the dict. I wonder why it works this way when while&amp;nbsp; fetching the ACLs we get it with the 'all_permissions'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also I have seen if there are any inherited ACL, we do not have to mention that in the payload. It take the permission for that group (eg. admin) automatically.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andolina&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 17:30:43 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-job-api-the-job-must-have-exactly-one-owner/m-p/104122#M41668</guid>
      <dc:creator>Andolina</dc:creator>
      <dc:date>2025-01-03T17:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks Job API: The job must have exactly one owner</title>
      <link>https://community.databricks.com/t5/data-engineering/databricks-job-api-the-job-must-have-exactly-one-owner/m-p/104841#M41899</link>
      <description>&lt;P&gt;Hi , I have tried the same approach but it ddint work for me. Iam using api/2.0 with PUT Request&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mnreddy_0-1736402218475.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13965i1D36C2FCE2EC3F5A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="mnreddy_0-1736402218475.png" alt="mnreddy_0-1736402218475.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 05:58:06 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/databricks-job-api-the-job-must-have-exactly-one-owner/m-p/104841#M41899</guid>
      <dc:creator>NR_Modugula</dc:creator>
      <dc:date>2025-01-09T05:58:06Z</dc:date>
    </item>
  </channel>
</rss>

