- Newest
- Most votes
- Most comments
You are correct, the "%" character is not allowed in usernames in Amazon Cognito. This is because the "%" character is a special character that is used in URIs to encode certain characters. When the Cognito console tries to parse the URI for the user details page, it encounters the "%" character and fails.
I recommend using the AWS CLI or SDK to access the user details. This is the simplest and most reliable way to get the job done.
Here is an example of how you can use the AWS CLI to get the user details:
aws cognito-idp get-user --user-pool-id <user-pool-id> --username <username>
Replace <user-pool-id> with the ID of your user pool and <username> with the username of the user.
The output of this command will contain all of the user's information, including their group memberships.
Relevant content
- Accepted Answerasked 2 years ago
- Accepted Answerasked a month ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated a year ago
Thank you for your answer, I will try using the CLI. However, if % causes problems in the Cognito management console, I believe the character should either be disallowed in usernames (which it isn't, since I am able to create users with this character) or the site should build the URI differently for usernames with "%", such as by escaping it with the "%25" escape code.