An error occurred (LimitExceededException) when calling the ListUsers operation (reached max retries: 2)

Hello,

We have 600+ users in QuickSight. I’m trying to export the list of users using aws quicksight list-users cli command.
Once I get first 100 users I try to run same command with --next token parameter with the value from previous command output, but getting following message:

An error occurred (LimitExceededException) when calling the ListUsers operation (reached max retries: 2): AWS account id: ***, Namespace: default

Found another post here (How to to get all UserNames from aws quicksight list-users cli) and doing the same, but getting this error instead. Am I doing something wrong?
Sometimes I get this error even with small --max-results like 2 or 3 without specifying --next-token.

Hi @serjdag ,

I was testing this at my end by using the max results = 2 and specifying the next token . It worked without throwing any errors.

If you are still facing this issue, I would recommend filing a case with AWS Support where we can dive into the details so that we can help you further. Here are the steps to open a support case. If your company has someone who manages your AWS account, you might not have direct access to AWS Support and will need to raise an internal ticket to your IT team or whomever manages your AWS account. They should be able to open an AWS Support case on your behalf. Hope this helps!

Kind regards,
Koushik

1 Like

Hi @serjdag - Can you share the command that you used ( please ensure not share the account or any PII info). In parallel also as suggested by Koushik, submit a ticket to AWS as well.

Regards - Sanjeeb

Hi @serjdag. Please try without max result.
-When you receive the token you should receive something similar like this.

100/rO0ABXQXXXXVYVcxbElqb3hOamd5TlRFM016UTVORFEzZlJvZ1dHcVZGcm1KU1l4OWZiQzJXNXdncXBkMnNUUTAB4cAAAAABwcHA= a37b1e31-09d9-4c99-ac15-5f1039c4f08e 200

-Please don’t include anything after the =
Example:
$nextToken = “100/rO0ABXQXXXXVYVcxbElqb3hOamd5TlRFM016UTVORFEzZlJvZ1dHcVZGcm1
KU1l4OWZiQzJXNXdncXBkMnNUUTAB4cAAAAABwcHA=”
aws quicksight list-users --aws-account-id “XXXX” --namespace “default” --next-token “$nextToken”

Regards -Ilies

2 Likes

Thanks @igiraldo , good to see your solution :slight_smile:
Hi @serjdag - Please try as per @igiraldo suggestion.

Its good that same problem withing community is resolving.

Regards - Sanjeeb

2 Likes

@igiraldo Here are the commands:

Command 1:

aws quicksight list-users --aws-account-id *** --profile prod --namespace default

Copying next token value for the next command (“NextToken”: “100/rO0ABX***TAw”)

Command 2:

aws quicksight list-users --aws-account-id *** --profile prod --namespace default --next-token “100/rO0ABX***TAw”

Getting following:

An error occurred (LimitExceededException) when calling the ListUsers operation (reached max retries: 2): AWS account id: ***, Namespace: default

Note: I have masked part of token and account-id as *** intentionally.

2 Likes

Also created a ticket with AWS support.

2 Likes

Thank you @serjdag . Please share the solution to the community as well after your problem will get resolve.

Have a great week ahead.

Regards - Sanjeeb

1 Like