To list users who haven't enabled MFA on their AWS accounts:
Install boto3
:
pip install boto3
And run:
import boto3
iam = boto3.resource('iam')
for user in iam.users.all():
has_any = any(user.mfa_devices.all())
if not has_any:
print(user.name)