cognitoidentityprovider: AdminGetUser() returns custom attributes as 'sensitive' #4570
-
I don't understand why the Golang SDK hides values from developers that SDKs in other languages make available to developers. I have a custom attribute in my Cognito user pool's schema. When I query a user with AdminGetUser(), that value is returned as 'sensitive.' Who are the go SDK developers to know which of my custom attributes are sensitive and which are not? Why are you making this decision for me? How can I get access to my data that I put in my Cognito user pool? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi @Nogginboink, The Go SDK client is auto-generated based on each AWS Service model. Service teams can annotate their API model members with the
Please include a simple repro code snippet so I can get a better idea of what you are trying to do. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Hi @Nogginboink,
The Go SDK client is auto-generated based on each AWS Service model. Service teams can annotate their API model members with the
sensitive
trait to prevent sensitive data (like user information) to be logged into plain text and then stored elsewhere.Other SDKs might not have this because they are not a Smithy-based SDK, and might not support that trait.
Please include a simple repro code snippet so I can get a better idea of what you are trying to do.
Thanks,
Ran~