Get user who ran a job

646901
New Contributor II

From the databricks API/ CLI is it possible to get the user who triggered a job run programatically?

The information can be found in the job "event log" and can be queried in the "audit log" but neither of these seem to have a API option. Is there a way from the API to get the person who triggered a job run?

Alberto_Umana
Databricks Employee
Databricks Employee

Hello @646901,

You can use the below REST API: 

/api/2.1/jobs/runs/get

https://docs.databricks.com/api/azure/workspace/jobs/getrun

Stefan-Koch
Databricks Partner

with the databricks cli you can get all infos about a job run with this command:

databricks jobs get-run <run-id>

 replace <run-id> with your actual run-id