Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions,
see Getting Started with Amazon Web Services in China
(PDF).
Add users to groups
Use the following procedure to add users as members of a group that you previously
created in your Identity Center directory. Alternatively, you can call the Amazon API
operation CreateGroupMembership to add a user as a member
of a group.
- Console
-
To add a user as a member of a group
-
Open the IAM Identity Center
console.
-
Choose Groups.
-
Choose the group name that you want to
update.
-
On the group details page, under Users in this group,
choose Add users to group.
-
On the Add users to group page, under Other
users, locate the users you want to add as members. Then,
select the check box next to each of them.
-
Choose Add users.
- Amazon CLI
-
To add a user as a member of a group
The following create-group-membership
command adds a user
to a group in your Identity Center directory.
aws identitystore create-group-membership \
--identity-store-id d-1234567890 \
--group-id a1b2c3d4-5678-90ab-cdef-EXAMPLE22222 \
--member-id UserId=a1b2c3d4-5678-90ab-cdef-EXAMPLE11111
Output:
{
"MembershipId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE33333",
"IdentityStoreId": "d-1234567890"
}