cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Databricks Job API: The job must have exactly one owner

ameet9257
New Contributor

Hi Team,

I'm trying to set the Job Permission using the Databricks Job API but getting the below error.

{
"error_code": "INVALID_PARAMETER_VALUE",
"message": "The job must have exactly one owner."
}
 
I first tried to get the job permission using the below API.
 
Below is the response I received. 
 
ameet9257_0-1731984876346.png

I used these details along with new permission to apply for the Job.

PUT https://adb-XXXXXXXXXX.10.azuredatabricks.net/api/2.0/permissions/jobs/18660

Body:

ameet9257_1-1731985277351.png

Response:

ameet9257_2-1731985298976.png
 
Let me know if anyone has faced the same issue.  

 

 
#databricks #jobs #api
Amit Prajapati
1 REPLY 1

ameet9257
New Contributor

Hi Team,

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. 

 

{"access_control_list":[{"user_name":"xxxxxxx@xxxxxx.com","permission_level":"IS_OWNER"},{"group_name":"data-scientists-dev","permission_level":"CAN_MANAGE"}]}
 
Then I used the same body param and was able to set the permission. 
 
 
 
ameet9257_0-1731986725626.png
If you guys have any other inputs please do share. 
 
 
Amit Prajapati

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group