Databricks API - Get Dashboard Owner?

ruicarvalho_de
New Contributor III

Hi all!

I'm trying to identify the owner of a dashboard using the API.

Here's a code snippet as an example:

import json

dashboard_id = "XXXXXXXXXXXXXXXXXXXXXXXXXX"
url = f"{workspace_url}/api/2.0/lakeview/dashboards/{dashboard_id}"
headers = {"Authorization": f"Bearer {token}"}

response = requests.get(url, headers=headers)
response.raise_for_status()
data = response.json()

print(json.dumps(data, indent=2))

This call returns:

  • dashboard_id, display_name, path, create_time, update_time, etag, serialized_dashboard, lifecycle_state and parent_path.

The only way I'm able to see the owner is in the UI.

Has someone faced this issue and found a workaround?
Thanks.

Rui Carvalho
Data Engineer