Lists users who haven’t enabled MFA on their AWS accounts.

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)