superset icon indicating copy to clipboard operation
superset copied to clipboard

How to Mass Update Chart Owners

Open smokemonster99 opened this issue 6 years ago • 3 comments

Hi, We currently limit chart/dashb ownership to a few admins, and those admin users have been added via local means by creating users and assigning Admin role. Now we have integrated with our company OAUTH (PING SSO) so the local users will never be logging in again since everyone must now use their company id. I am able to manually mark the few admins' company ids to the admin role; however I would like to do a update using the metadata database to add the few company ids (that are admins) as owners of all the charts (and dashboards). I want to do this so that any of the admins can save/overwrite the modified charts.

In the database for slices, I only see created_by_fk and changed_by_fk and I am not sure how to modify owners. I do not want to use the UI to edit each chart/dashb. :-)

Can you suggest a way to do this? I am using v33

thanks

smokemonster99 avatar Jun 03 '20 20:06 smokemonster99

Issue-Label Bot is automatically applying the label #question to this issue, with a confidence of 0.87. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Jun 03 '20 20:06 issue-label-bot[bot]

Update slice_user since slice owners are a many to many relationship

dpgaspar avatar Jun 04 '20 14:06 dpgaspar

thanks @dpgaspar I should have noticed that.

smokemonster99 avatar Jun 04 '20 16:06 smokemonster99