How to modify a custom attribute of Cognito Userpool?
I have made application which requires login and signup. The data fields of users are like (name, emailid, password and role_type(default is visitor). So there are two roles- Admin and visitor. I have a page called UserManagement, where I can change the type of user from admin to visitor or vice versa. I did this previously by storing the user data in a Database and modifying the role of that user via a typical API request. Now, recently, I shifted to AWS Cognito for storing and managing all users. I had a name, email and password as usual, and for role I had to make a custom attribute called role (custom:role like this), and then I could have all the same parameters as previously. Now I want to know how I can display all users and also change their custom:role type attribute from visitor to admin and vice versa using Cognito from UI. Do I need to implement an API for handling this or do you guys have any other ideas on this?
I think, by default, Cognito doesn’t allow changing attributes of other users.
Any Ideas or Suggestions are Appreciated.