How to list all IAM users of an AWS account

Below is the command to retrieve all the users of your AWS account.

aws iam list-users

See also  How to List all user defined schemas of a Redshift database