databricks-sdk-py
databricks-sdk-py copied to clipboard
[ISSUE] Azure Job run_as blank
Description When Listing all Jobs on Azure Databricks the "JobSettings.run_as" is always blank.
Reproduction Create a Job in the UI, and change the run_as configuration. Then the following Code will Log None.
for job in client.jobs.list(expand_tasks=True):
print(job.settings.run_as)
Looking at the API-response from curl -H "Authorization: Bearer $token" https://******.azuredatabricks.net/api/2.2/jobs/list, the field run_as_user_name should be used. It is given alongside creator_user_name.
Other Information
- Tested using
databricks-sdk==0.53.0