Vito Marseglia
Vito Marseglia

Reputation: 115

How to get the list of users, in a React application using Amplify Gen 2

I should create a simple React component that displays the list of users on Cognito, I currently use an Amplify Gen 2, but I can't find in the official documentation any example on how to extract the list of users. Could someone please help me?

https://docs.amplify.aws/react/

I am using AWS and Amplify recently and am not an expert.

I don't know if there is also something to change in the amplify folder to have permissions as I was reading this: https://docs.amplify.aws/react/build-a-backend/auth/grant-access-to-auth-resources/

Do I need to create UserGroups to have access to the user list? If yes, how do I create (for example) two user types one "ADMIN" and the other "GUEST"?

Upvotes: 0

Views: 38

Answers (0)

Related Questions