<?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 creator update with API in Administration &amp; Architecture</title>
    <link>https://community.databricks.com/t5/administration-architecture/databricks-job-creator-update-with-api/m-p/60026#M864</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/76914"&gt;@Ayushi_Suthar&lt;/a&gt;&amp;nbsp;thanks for such a quick response.&lt;/P&gt;&lt;P&gt;I am aware that we can clone the job to update the creator. The reason why I don't do that is because I want to keep the job "runs". We have a KPI for availability based on the number of successfully job runs vs fails job runs and if I clone the job, I will lose all that information. Also, when someone is not longer working in the Databricks workspace we have this "Unknown" property in the UI:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danmlopsmaz_1-1707823634898.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6222i61BB74240AE8F0D0/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="danmlopsmaz_1-1707823634898.png" alt="danmlopsmaz_1-1707823634898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 13 Feb 2024 11:27:21 GMT</pubDate>
    <dc:creator>danmlopsmaz</dc:creator>
    <dc:date>2024-02-13T11:27:21Z</dc:date>
    <item>
      <title>Databricks job creator update with API</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-job-creator-update-with-api/m-p/59979#M861</link>
      <description>&lt;P&gt;Hi team,&lt;/P&gt;&lt;P&gt;Greetings.&lt;/P&gt;&lt;P&gt;Do you know if there is a way to update the creator of a &lt;EM&gt;databricks_job&lt;/EM&gt; using the API? the&amp;nbsp;&lt;A href="https://docs.databricks.com/api/workspace/jobs/reset" target="_self"&gt;Documentation&lt;/A&gt;&amp;nbsp;does not show "the creator" property and when I tried setting the creator, this property is not updated in the workspace UI.&lt;/P&gt;&lt;P&gt;The reason behind this is for having the same feature with a cluster creator when we can update the owner, but with &lt;STRONG&gt;&lt;EM&gt;databricks_job&lt;/EM&gt;&lt;/STRONG&gt; don't.&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;I am not referring about the "owner" in the job permissions. I am referring to the "creator" of the job&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 20:07:50 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-job-creator-update-with-api/m-p/59979#M861</guid>
      <dc:creator>danmlopsmaz</dc:creator>
      <dc:date>2024-02-12T20:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks job creator update with API</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-job-creator-update-with-api/m-p/59987#M862</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/99602"&gt;@danmlopsmaz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for bringing your concern to the community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unfortunately,&lt;/SPAN&gt;&amp;nbsp;looks like&amp;nbsp;&lt;STRONG&gt;updating the "creator" of a Databricks job through the API is not possible at this time.&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;The Databricks Jobs API and documentation do not currently expose any such functionality as you might have already checked.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Additionally,&lt;/SPAN&gt;&lt;SPAN&gt; attempting to set the "creator" field while updating the job will not change the displayed creator in the workspace UI.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While the lack of this feature might seem like a limitation compared to updating cluster ownership,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;according to me there could be &amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;important reasons&lt;/STRONG&gt;&lt;SPAN&gt; behind this choice:&lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;The "creator" field serves as an audit trail,&lt;/SPAN&gt;&lt;SPAN&gt; providing an immutable record of who initially created the job.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;It could introduce security vulnerabilities,&lt;/SPAN&gt;&lt;SPAN&gt;potentially allowing unauthorised users to claim ownership of sensitive jobs.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;SPAN&gt;As I don’t have specific details about your use case but here are a few&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;alternative approaches&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;which I can think of:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1. Leverage Permissions and Owners:&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Grant appropriate permissions to specific users or groups to manage and modify jobs without needing to change the creator.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Utilize the "owner" field in job permissions,&lt;/SPAN&gt;&lt;SPAN&gt;which controls who can edit and schedule the job.&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;2.&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;Store the creator information (username,&lt;/SPAN&gt;&lt;SPAN&gt;timestamp,&lt;/SPAN&gt;&lt;SPAN&gt; etc.&lt;/SPAN&gt;&lt;SPAN&gt;) alongside the job metadata in a separate system like a database or data lake. Using this you can manage your user who created the job.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3.&amp;nbsp;&lt;/STRONG&gt;&lt;SPAN&gt;Consider using Databricks Workflows,&lt;/SPAN&gt;&lt;SPAN&gt; which offer shared ownership and collaborative development on job definitions.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;This way,&lt;/SPAN&gt;&lt;SPAN&gt; multiple users can contribute to the job while maintaining transparency and accountability.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any followups are highly appreciated, thanks for taking the time to read.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Feb 2024 22:56:57 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-job-creator-update-with-api/m-p/59987#M862</guid>
      <dc:creator>Palash01</dc:creator>
      <dc:date>2024-02-12T22:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks job creator update with API</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-job-creator-update-with-api/m-p/59997#M863</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/99602"&gt;@danmlopsmaz&lt;/a&gt;&amp;nbsp;, Thanks for bringing up your concerns, always happy to help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I understand the customer wanted to change the creator of the job but at this moment we could change the owner but not the creator. But you should be able to clone an existing job, this will ensure all the configs are replicated and the creator name would be updated.&lt;/P&gt;
&lt;P&gt;Kindly refer to this document to copy the job:&amp;nbsp;&lt;A href="https://docs.databricks.com/en/archive/dev-tools/cli/jobs-cli.html#create-a-job:~:text=To%20copy%20a%20job%2C%20run%20the%20create%20command%20and%20pass%20a%20JSON%20object%20with%20the%20settings%20of%20the%20job%20to%20copy.%20This%20example%20copies%20the%20settings%20of%20the%20job%20with%20the%20ID%20of%20246%20into%20a%20new%20job.%20It%20requires%20the%20jq%20utility" target="_blank"&gt;https://docs.databricks.com/en/archive/dev-tools/cli/jobs-cli.html#create-a-job:~:text=To%20copy%20a%20job%2C%20run%20the%20create%20command%20and%20pass%20a%20JSON%20object%20with%20the%20settings%20of%20the%20job%20to%20copy.%20This%20example%20copies%20the%20settings%20of%20the%20job%20with%20the%20ID%20of%20246%20into%20a%20new%20job.%20It%20requires%20the%20jq%20utility&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;Please let me know if this helps and leave a like if this helps, followups are appreciated.&lt;BR /&gt;Kudos&lt;BR /&gt;Ayushi&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 05:25:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-job-creator-update-with-api/m-p/59997#M863</guid>
      <dc:creator>Ayushi_Suthar</dc:creator>
      <dc:date>2024-02-13T05:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks job creator update with API</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-job-creator-update-with-api/m-p/60026#M864</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/76914"&gt;@Ayushi_Suthar&lt;/a&gt;&amp;nbsp;thanks for such a quick response.&lt;/P&gt;&lt;P&gt;I am aware that we can clone the job to update the creator. The reason why I don't do that is because I want to keep the job "runs". We have a KPI for availability based on the number of successfully job runs vs fails job runs and if I clone the job, I will lose all that information. Also, when someone is not longer working in the Databricks workspace we have this "Unknown" property in the UI:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danmlopsmaz_1-1707823634898.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/6222i61BB74240AE8F0D0/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="danmlopsmaz_1-1707823634898.png" alt="danmlopsmaz_1-1707823634898.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Feb 2024 11:27:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-job-creator-update-with-api/m-p/60026#M864</guid>
      <dc:creator>danmlopsmaz</dc:creator>
      <dc:date>2024-02-13T11:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Databricks job creator update with API</title>
      <link>https://community.databricks.com/t5/administration-architecture/databricks-job-creator-update-with-api/m-p/60142#M866</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/99602"&gt;@danmlopsmaz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at your concern of maintaining the KPI. I agree that if you clone or re-create the job you will loose the history. A way which I can think of is if you can capture these details of your runs in a separate table. Look at my response above where in I've explained further about this. Due to some technical issues my post was not posted yesterday and it's showing up now.&lt;/P&gt;&lt;P&gt;Let us know if this helps, follow ups are appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 06:56:05 GMT</pubDate>
      <guid>https://community.databricks.com/t5/administration-architecture/databricks-job-creator-update-with-api/m-p/60142#M866</guid>
      <dc:creator>Palash01</dc:creator>
      <dc:date>2024-02-14T06:56:05Z</dc:date>
    </item>
  </channel>
</rss>

