CmdID / aws / aws cognito-idp
aws cognito-idp admin-list-groups-for-user
Lists the groups that a user belongs to. AWS CLI reference
4 options Its page in the AWS CLI reference
Options
--limitThe maximum number of groups that you want Amazon Cognito to return in the response.--next-tokenThis API operation returns a limited number of results.--user-pool-idThe ID of the user pool where you want to view a user's groups.--usernameThe name of the user that you want to query or modify.