navvn
navvn

Reputation: 575

AWS Amplify - update another user attributes

Is there a way I can update another user attributes using AWS amplify with cognito? I.e. when user reply to a post I want to change a rating of a person that started a thread. Or for this I will need a table in DB to manage it.

In docs i see that there is a method:

https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/CognitoIdentityServiceProvider.html#adminUpdateUserAttributes-property

but I dont see a way to use it in Amplify.

Upvotes: 0

Views: 924

Answers (1)

Saiful Azad
Saiful Azad

Reputation: 1941

I have not seen any API of aws-amplify which can alter user attributes as admin.

Generally, it is good practice not to duplicate data or keeping data duplication minimal if unavoidable. In other words, keeping a single source of truth. Use Cognito as only for authentication, I mean obtaining JWT token.

Rating, user basic info, and role; keep those at your own data source.

Upvotes: 0

Related Questions