Help us improve the AWS re:Post Knowledge Center by sharing your feedback in a brief survey. Your input can influence how we create and update our content to better support your AWS journey.
CLI命令“aws iam list-mfa-devices”不能返回属于帐户根用户的MFA设备
0
【以下的问题经过翻译处理】 AWS CLI命令aws iam list-mfa-devices似乎无法返回属于账户根用户的MFA设备。
aws iam list-mfa-devices --user-name root
An error occurred (NoSuchEntity) when calling the ListMFADevices operation: The user with name root cannot be found.
然而,CLI命令aws iam list-virtual-mfa-devices确实返回属于账户根用户的虚拟MFA设备。