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

<pre lang="bash">aws iam get-user --user-name John.Doe --profile default