Here’s how to get a user info from AWS CLI.

aws iam get-user --user-name John.Doe --profile default