mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-11 17:03:33 +00:00
12 lines
329 B
Python
12 lines
329 B
Python
from datahub.sdk import CorpUserUrn, DashboardUrn, DataHubClient
|
|
|
|
client = DataHubClient.from_env()
|
|
|
|
dashboard = client.entities.get(DashboardUrn("looker", "dashboards.999999"))
|
|
|
|
dashboard.add_owner(CorpUserUrn("jdoe"))
|
|
|
|
client.entities.update(dashboard)
|
|
|
|
print(f"Added owner {CorpUserUrn('jdoe')} to dashboard {dashboard.urn}")
|