v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14101465558.4 KB

Lists the groups that the user belongs to.

Calling this action requires developer credentials.

post/#X-Amz-Target=AWSCognitoIdentityProviderService.AdminListGroupsForUser

Query parameters

Limitstring

Pagination limit

NextTokenstring

Pagination token

Headers

X-Amz-Target'AWSCognitoIdentityProviderService.AdminListGroupsForUser' required

Request body

Usernamestring password required

The username for the user.

UserPoolIdstring required

The user pool ID for the user pool.

Limitinteger

The limit of the request to list groups.

NextTokenstring

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.

Response

Success

NextTokenstring

An identifier that was returned from the previous call to this operation, which can be used to return the next set of items in the list.