Unexpected cannot list data sets in the command line interface

i have an admin account on our quicksight instance. i have not used the aws quicksight cli before, but i am now trying to. i am confused about which account id to use: my organisation has a root account and i have an account under that root account. then we have different roles defined, and our quicksight is under a production role that my account can switch to. it has a number of datasets in there, but when i try to list the ids i get an unexpected error:

~/> aws quicksight list-data-sets --aws-account-id
An error occurred (AccessDeniedException) when calling the ListDataSets operation: User: arn:aws:iam:::user/is not authorized to access this resource

any suggestions?

On QuickSight page, click on user profile icon on top right of the UI and select info.
This page will show the QuickSight account name and ID. This is the ID you need to use to execute CLI commands.

image

1 Like

If you are executing the CLI from local, make sure to configure correct Security and Access keys from your AWS account for programmatic access

1 Like

yes, that is where i got the account id, the id that occurs in the error message is different.

make sure to configure correct Security and Access keys from your AWS account for programmatic access

i think that was the issue. need my admin to help me out here.