aws iam list-groups-for-user
Lists the IAM groups that the specified IAM user belongs to. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--markerUse this parameter only when paginating results and only after you receive a response indicating that the results are truncated.--max-itemsUse this only when paginating results to indicate the maximum number of items you want in the response.--user-nameThe name of the user to list groups for.