REST API admin access on all endpoints
As admin, I can get other people's dashboards using the /dashboards/admin endpoint.
However, the information returned is limited: I can't get a .dash file or widget objects.
I want to use my admin rights on the /dashboards/{id}/export/dash endpoint to download every dashboard, even ones that haven't been shared with me.
Perhaps this could be generalised to other endpoints that limit based on dashboard permissions or other permissions: If as admin I can grant myself access to an object through the UI, then I should be able to set a flag in my API calls to circumvent these restrictions.
Tim von Ahsen
Posted 1 year ago·Last reply 1 year ago
4 comments
DRay
·1 year agoHi Tim,
Thank you for the response. If/when you do encounter an issue with API permissions please let us know. We can help figure out how to fulfill the need, or raise an enhancement.
Thank you for being so active!
Tim von Ahsen
OP1 year agoDRay HamzaJ's solution works for the scenario I needed. But there might be other cases where I want to use my admin access; so it might be nice if every endpoint let me use adminAccess=true to circumvent permissions. For now, I've got what I need though.
DRay
·1 year agoHi Tim,
Does the solution provided by HamzaJ work for you?
HamzaJ
·1 year agoI can second this.
Ps. Tim has a workaround you can use adminAccess=true as a query parameter. This doesnt work in all cases, but for the dashboards and widget endpoints it works.
So if you dont have access to a dashboard, but you are the admin the following endpoint works to export the dash:
https://sisense.com/api/dashboards/DASHBOARDID/export?adminAccess=true