Fetch All Dashboards from a specific namespace created in QuickSight

I want to fetch dashboards of a specific name space. I don’t see an option to pass the namespace in Get Dashboards API request (https://quicksight.us-east-1.amazonaws.com/accounts/{account-Id}/dashboards) as per the documentation, and there no option to pass the namespace even in ListDashboardsRequest class of aws-java-sdk-quicksight.

Hi @harshav

QuickSight dashboard APIs don’t support a namespace filter, dashboards live at the account level, not inside namespaces. Namespaces only apply to users and groups.

  1. Call ListDashboards to get all dashboard IDs.
  2. For each dashboard, call DescribeDashboardPermissions.
  3. Inspect the returned principal ARNs, they look like - arn:aws:quicksight:<region>:<acct>:user/<namespace>/<username>
  4. Keep only dashboards whose permission list contains a principal in your target namespace.

When you create or update a dashboard, call TagResource and add a tag such as Ex: Key=<Namespace>, Value= <your-namespace>.

After ListDashboards, use ListTagsForResource on each ARN and filter by that tag.

Please refer to the following documentations this might be helpful for you.

Hi @harshav

It’s been a while since we last heard from you. If you have any further questions, please let us know how we can assist you.

If we don’t hear back within the next 3 business days, we’ll proceed with close this topic.

Thank you!