<?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: error while setting up permission for job  via api in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100768#M40415</link>
    <description>&lt;P&gt;I see the problem. It is because you are inputting parameters that are not valid ones. The REST API Patch call should look something like the example in the page:&lt;/P&gt;
&lt;P&gt;You are inputting values that are shown on the sample response.&lt;/P&gt;
&lt;P&gt;Please validate the input parameters indicated on the API.&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"access_control_list": [&lt;BR /&gt;{&lt;BR /&gt;"user_name": "string",&lt;BR /&gt;"group_name": "string",&lt;BR /&gt;"service_principal_name": "string",&lt;BR /&gt;"permission_level": "CAN_MANAGE"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 14:15:17 GMT</pubDate>
    <dc:creator>Alberto_Umana</dc:creator>
    <dc:date>2024-12-03T14:15:17Z</dc:date>
    <item>
      <title>error while setting up permission for job  via api</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100756#M40405</link>
      <description>&lt;P&gt;Hi Guys , I am getting below error&amp;nbsp; when I am trying to setup permission for the job via api. Though I am able to create a job via api. Can anyone help to identify the issue or any one has faced below error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"error_code": "INVALID_PARAMETER_VALUE",&lt;BR /&gt;"message": "Permission type not defined"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;json payload&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"access_control_list": [&lt;BR /&gt;{&lt;BR /&gt;"user_name": "no_email@gmail.com",&lt;BR /&gt;"display_name": "no_email",&lt;BR /&gt;"all_permissions": [&lt;BR /&gt;{&lt;BR /&gt;"permission_level": "CAN_MANAGE",&lt;BR /&gt;"inherited": false&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 13:24:34 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100756#M40405</guid>
      <dc:creator>yash_verma</dc:creator>
      <dc:date>2024-12-03T13:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: error while setting up permission for job  via api</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100758#M40407</link>
      <description>&lt;P class="p1"&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/134759"&gt;@yash_verma&lt;/a&gt;,&lt;/P&gt;
&lt;P class="p1"&gt;what is the API you are calling?&lt;/P&gt;
&lt;P class="p1"&gt;The error you're encountering, "INVALID_PARAMETER_VALUE: Permission type not defined," suggests that there is an issue with the JSON payload you are using to set permissions for the job via the API. Specifically, it seems that the API is expecting a defined permission type, but it is not finding one in your request.&lt;/P&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;Add the Permission Type&lt;/STRONG&gt;: Modify your JSON payload to include the "permission_type" field. Here is an example of how you might structure it:&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"access_control_list": [&lt;BR /&gt;{&lt;BR /&gt;"user_name": "no_email@gmail.com",&lt;BR /&gt;"display_name": "no_email",&lt;BR /&gt;"all_permissions": [&lt;BR /&gt;{&lt;BR /&gt;"permission_level": "CAN_MANAGE",&lt;BR /&gt;"inherited": false,&lt;BR /&gt;"permission_type": "user" // Add this line&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 13:30:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100758#M40407</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-03T13:30:48Z</dc:date>
    </item>
    <item>
      <title>Re: error while setting up permission for job  via api</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100760#M40409</link>
      <description>&lt;P&gt;Hi Alberto,&lt;/P&gt;&lt;P&gt;Please refer the below link from databricks and there is no such param name as permission type. Even I have tried to retrieve the another job permission through api and there also no such parameter exists. Not sure&amp;nbsp; from where this error is coming&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.databricks.com/api/workspace/jobs/updatepermissions" target="_blank"&gt;Update job permissions | Jobs API | REST API reference | Databricks on AWS&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 13:37:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100760#M40409</guid>
      <dc:creator>yash_verma</dc:creator>
      <dc:date>2024-12-03T13:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: error while setting up permission for job  via api</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100763#M40412</link>
      <description>&lt;P&gt;Thanks for sharing the endpoint.&lt;/P&gt;
&lt;P&gt;Could you please send me the API call you are making with body details? based on the error looks like something might be wrong with the call.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 13:52:11 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100763#M40412</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-03T13:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: error while setting up permission for job  via api</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100767#M40414</link>
      <description>&lt;P&gt;Please let me know if you require more details. I have put the screenshot of insomnia&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="yash_verma_0-1733234268419.png" style="width: 400px;"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/13298i4781437FFB9D00DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="yash_verma_0-1733234268419.png" alt="yash_verma_0-1733234268419.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 14:00:04 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100767#M40414</guid>
      <dc:creator>yash_verma</dc:creator>
      <dc:date>2024-12-03T14:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: error while setting up permission for job  via api</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100768#M40415</link>
      <description>&lt;P&gt;I see the problem. It is because you are inputting parameters that are not valid ones. The REST API Patch call should look something like the example in the page:&lt;/P&gt;
&lt;P&gt;You are inputting values that are shown on the sample response.&lt;/P&gt;
&lt;P&gt;Please validate the input parameters indicated on the API.&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;"access_control_list": [&lt;BR /&gt;{&lt;BR /&gt;"user_name": "string",&lt;BR /&gt;"group_name": "string",&lt;BR /&gt;"service_principal_name": "string",&lt;BR /&gt;"permission_level": "CAN_MANAGE"&lt;BR /&gt;}&lt;BR /&gt;]&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 14:15:17 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100768#M40415</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2024-12-03T14:15:17Z</dc:date>
    </item>
    <item>
      <title>Re: error while setting up permission for job  via api</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100770#M40417</link>
      <description>&lt;P&gt;Thanks Alberto. It worked.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 14:27:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/100770#M40417</guid>
      <dc:creator>yash_verma</dc:creator>
      <dc:date>2024-12-03T14:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: error while setting up permission for job  via api</title>
      <link>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/109047#M43217</link>
      <description>&lt;P&gt;I get that the solution was accepted, but it is very confusing when you run the databricks command as follows:&lt;/P&gt;&lt;P&gt;databricks clusters get-permissions my-joyous-db-cluster&lt;/P&gt;&lt;P&gt;"access_control_list": [&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"all_permissions": [&lt;BR /&gt;{&lt;BR /&gt;"inherited":false,&lt;BR /&gt;"permission_level":"CAN_RESTART"&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"display_name":"Databricks User Jim",&lt;BR /&gt;"user_name":"nbu@flaminghell.onmicrosoft.com"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;"object_id"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"/clusters/3333-123456-aaaa2jk8"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"object_type":"cluster"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;and when you set the permissions the format is like:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"access_control_list"&lt;/SPAN&gt;&lt;SPAN&gt;: [&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"permission_level"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"CAN_RESTART"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"display_name"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"Databricks User Jim"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"user_name"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"nbu@flaminghell.onmicrosoft.com"&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;DIV&gt;&lt;SPAN&gt;&amp;nbsp;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"object_id"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"/clusters/3333-123456-aaaa2jk8"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN&gt;"object_type"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;"cluster"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why the all_permissions on the print out but not on the user names when you set them.&amp;nbsp; Why is the format not exactly the same when getting and setting the values?&amp;nbsp; This is rediculous.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Feb 2025 02:21:01 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/error-while-setting-up-permission-for-job-via-api/m-p/109047#M43217</guid>
      <dc:creator>JohnKruebbe</dc:creator>
      <dc:date>2025-02-06T02:21:01Z</dc:date>
    </item>
  </channel>
</rss>

