aws iam list-groups
Lists the IAM groups that have the specified path prefix. 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.--path-prefixThe path prefix for filtering the results.