Check if string is present in usernames in multiple AWS accounts using awscli and jq

for profile in $(grep "\[" ~/.aws/credentials | tr -d '[|]'); \
do echo $profile; \
aws --profile $profile iam list-users | jq '.Users[] | select(.UserName | contains("dmitri"))'; \
done
This will: