aws iam get-account-authorization-details
Retrieves information about all IAM users, groups, roles, and policies in your Amazon Web Services account, including their relationships to one another. AWS CLI reference
3 options Its page in the AWS CLI reference
Options
--filterA list of entity types used to filter the results.--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.