How can a cognito user be assigned to a group in i

2019-08-04 07:11发布

问题:

I have created a cognito user group in AWS console. I am able to create a cognito user from my iOS app and I can see the user record from the AWS console. Now I need to add this user to a group. Is it possible to do this from the app without using AWS console. i.e When a new user is created the user should be added to a group. This should be handled in the iOS app.

回答1:

You can create and manage groups in a user pool from the AWS Management Console, the APIs, and the CLI. As a developer (using AWS credentials), you can create, read, update, delete, and list the groups for a user pool. You can also add users and remove users from groups.

Note: adding users to groups, etc. requires access keys with permissions to Cognito. This is not something that you would provide a new signup.