HashiCorp Cloud Platform
hcp iam groups members add
Command: hcp iam groups members add
The hcp iam groups members add
command adds members to a group.
All added members will inherit any roles that have been granted to the group.
Usage
$ hcp iam groups members add [Optional Flags]
Examples
Add members to the "platform-team":
$ hcp iam groups members add --group=team-platform \
--member=7f8a81b2-1320-4e49-a2e5-44f628ec74c3 \
--member=f74f44b9-414a-409e-a257-72805d2c067b
Flags
-g, --group=NAME
- The name of the group to add a member to. The name may be specified as either:- The group's resource name. Formatted as
iam/organization/ORG_ID/group/GROUP_NAME
- The resource name suffix,
GROUP_NAME
.
- The group's resource name. Formatted as
-m, --member=ID [Repeatable]
- The ID of the user principal to add to the group.