List AWS Quicksight dashboards per namespace

Viewed 453

We have a demo Quicksight implementation using API Gateway and Lambda to provide embedded dashboards. We now want to use namespaces within Quicksight to create a multi-tenant environment however the ListDashboards API endpoint does not accept a parameter identifying the namespace we want to query.

How do you query which dashboards are available for a particular namespace?

1 Answers

I don't have namespaces set up but I see that a Quicksight User's ARN contains a NameSpace level such as the ones I have highlighted below from the docs:

"QuickSight considers these two entities to be different persons:

  • arn:aws:quicksight:us-east-1:111122223333:user/namespace-123/username123

  • arn:aws:quicksight:us-east-1:111122223333:user/namespace-456/username123"

And describe-dashboard-permissions lists all User ARNs so you will have to list-dashboards, iterate over this list with describe-dashboard-permissions and parse User ARNs for the matching list of namespaces. We use a variety of such iterative scripts for similar purposes because there aren't better pure API solutions (yet).

This source seems to show that namespaces don't appear in dashboard ARNs, and also that you have to use the CLI to share dashboards across namespaces as well. Cheers.

Related