Modifying a Group

Using OSC CLI and AWS CLI, you can modify the name and/or path of a specified group.

Modifying a Group Using OSC CLI

See the UpdateGroup command sample in the documentation of the EIM API.

Modifying a Group Using AWS CLI

To modify the name and/or the path of a group, use the update-group command following this syntax:

Request sample
$ aws iam update-group \
    --profile YOUR_PROFILE \
    --group-name GROUP_NAME \
    --new-path /NEW_PATH/NEW_SUB_PATH/ \
    --new-group-name NEW_GROUP_NAME \

This command contains the following attributes that you need to specify:

  • (optional) profile: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI.

  • group-name: The name of the group you want to modify.

  • (optional) new-path: The new path for the group.

  • (optional) new-group-name: The new name for the group.

    This name must be unique and must contain between 1 and 128 characters. Allowed characters are a-z, A-Z, 0-9, and +=,.@-_.

  • endpoint: The endpoint corresponding to the Region you want to send the request to.

The name and/or the path of the specified group are modified.

Related Pages

Corresponding API Method

AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.