Forrest logo
back to the aws tool

aws-iam:tldr:f11b2

aws-iam: List groups.
$ aws iam list-groups
try on your machine

The command "aws iam list-groups" is used to retrieve a list of all existing IAM groups within your AWS account.

Here's a breakdown of the command components:

  • "aws" refers to the AWS Command Line Interface (CLI) tool.
  • "iam" denotes the AWS Identity and Access Management (IAM) service.
  • "list-groups" specifies the specific action to be performed, which is to retrieve a list of IAM groups.

When you execute this command, the AWS CLI communicates with the IAM service and returns a JSON-formatted response containing information about all the IAM groups in your account. This information typically includes details like the group name, group ID, creation date, and the ARN (Amazon Resource Name) of the group.

It's important to note that to use this command, you need to have the necessary IAM permissions to perform the "iam:ListGroups" action.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the aws tool