Reputation: 575
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:
but I dont see a way to use it in Amplify.
Upvotes: 0
Views: 924
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