The following code examples show how to use GetGroup
.
- AWS CLI
-
To get an IAM group
This example returns details about the IAM group
Admins
.aws iam get-group \ --group-name
Admins
Output:
{ "Group": { "Path": "/", "CreateDate": "2015-06-16T19:41:48Z", "GroupId": "AIDGPMS9RO4H3FEXAMPLE", "Arn": "arn:aws:iam::123456789012:group/Admins", "GroupName": "Admins" }, "Users": [] }
For more information, see IAM Identities (users, user groups, and roles) in the AWS IAM User Guide.
-
For API details, see GetGroup
in AWS CLI Command Reference.
-
For a complete list of AWS SDK developer guides and code examples, see Using this service with an AWS SDK. This topic also includes information about getting started and details about previous SDK versions.