mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-12 09:23:52 +00:00
12 lines
299 B
Python
12 lines
299 B
Python
from datahub.sdk import ChartUrn, CorpUserUrn, DataHubClient
|
|
|
|
client = DataHubClient.from_env()
|
|
|
|
chart = client.entities.get(ChartUrn("looker", "sales_dashboard"))
|
|
|
|
chart.add_owner(CorpUserUrn("jdoe"))
|
|
|
|
client.entities.update(chart)
|
|
|
|
print(f"Added owner {CorpUserUrn('jdoe')} to chart {chart.urn}")
|