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

admin2025-04-18  4

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?

/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: /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"?

转载请注明原文地址:http://anycun.com/QandA/1744970736a90209.html