-
Notifications
You must be signed in to change notification settings - Fork 16
AWS Cognito UserMFASettingList field of AdminGetUserResponse is empty #693
Comments
@lgolubenkobit I'll need more information in order to help you out.
According to the API Reference, |
@lgolubenkobit thank you for the additional logs. The observations in the StackOverflow answer make sense. Looking at the logs you provided, the 'UserMFASettingList' and 'PreferredMfaSetting' are not part of the AdminGetUser response initially:
but they will get populated after calling AdminSetUserMfaPreference. I'll reach out to the Cognito team to comment on this behavior, to confirm if it's expected. If it is, I'll ask to make it clear in the AdminGetUser API Reference. I'll also transfer this issue to the central |
P116943917 |
@lgolubenkobit The Cognito team confirmed the behavior is expected. As for my ask to clarify in the documentation, they said they don't see the confusion. But I'll push back on that. I'll go ahead and close this, as there's nothing else pending from the SDK team. Feel free to reach out if you have any other question. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
I have the same problem described here, not only with MFASettingList, also with mfaOptions and preferredMfaSetting
StackOverflow
After login on hosted UI, i've configured TOTP App as 2FA, but when invoke, by sdk, adminGetUser or getUser,
attributes are null or empty
Expected Behavior
Return preferred MFA and available options
Current Behavior
Attributes are null or empty
MFASettingList: []
mfaOptions: []
preferredMfaSetting: null
Reproduction Steps
Login on hosted UI and configure 2FA,
Invoke adminUserInfo vía SDK.
Possible Solution
No response
Additional Information/Context
No response
AWS Java SDK version used
2.21.12
JDK version used
Java 8
Operating System and version
KDE Plasma
The text was updated successfully, but these errors were encountered: