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 check if an IAM user has a login profile(password)