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:ย 

Is 'run_as' user available from jobs api 2.1?

156190
New Contributor III

I know that the run_as user generally defaults to the creator_user, but I would like to find the defined run_as user for each of our jobs. Unfortunately, I'm unable to locate that field in the api.

1 ACCEPTED SOLUTION

Accepted Solutions

156190
New Contributor III

>> Thanks for reaching out to us. In order to update run_as_user in API 2.1, you need to change the job owner to the respective user defined in the access_control_list.

Thank you. Unfortunately, I am not trying to update the run_as_user, but I am trying to retrieve it.

Upon closer reading of the yaml for Jobs API 2.1, it looks like run_as_user for a job is available via 'get' (for an individual job), but is not returned as part of 'list'. So it appears the confusion is mine.

I would suggest that in the future, perhaps ownership/privilege information would be valuable as part of job list retrieval.

Thanks for the help!

View solution in original post

4 REPLIES 4

Cedric
Databricks Employee
Databricks Employee

Hi @Keller, Michaelโ€‹,

Thanks for reaching out to us. In order to update run_as_user in API 2.1, you need to change the job owner to the respective user defined in the access_control_list.

156190
New Contributor III

>> Thanks for reaching out to us. In order to update run_as_user in API 2.1, you need to change the job owner to the respective user defined in the access_control_list.

Thank you. Unfortunately, I am not trying to update the run_as_user, but I am trying to retrieve it.

Upon closer reading of the yaml for Jobs API 2.1, it looks like run_as_user for a job is available via 'get' (for an individual job), but is not returned as part of 'list'. So it appears the confusion is mine.

I would suggest that in the future, perhaps ownership/privilege information would be valuable as part of job list retrieval.

Thanks for the help!

Anonymous
Not applicable

Hi @Keller, Michaelโ€‹ 

Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help. 

We'd love to hear from you.

Thanks!

156190
New Contributor III

thanks, I picked my own reply as the 'right' answer. i'd still recommend that the jobs api perhaps incorporate run-as-user in the 'list' method, rather than only in job details.

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