We will create groups from the console and assign users to the groups by following these steps:
- Go to the Cognito dashboard and then go to our user pool.
- Click on Users and groups.
- Click on the Groups tab.
- Click on Create group.
- Enter Name, Description, and then click on Create group:
- Create another group called CAdmins and its description as Content Admins.
- Click on the Admins group from the list of groups.
- Click on Add user and add testuser1 using the plus(+) button.
- Click on Add user and add testuser2 using the plus(+) button.
- Go back and click on the CAdmins group from the list of groups.
- Click on Add user and add ...