def list_user_credentials(self): i = Iam() users = i.list_users() ret = [] for user in users: creds = i.list_user_credentials(username=user['UserName']) for cred in creds: last_used = i.get_access_key_last_used( access_key=cred['AccessKeyId']) cred.update(last_used) ret.append(cred) return ret
def list_iam_users(self): i = Iam() ret = i.list_users() return ret