AWS User Groups: What Are They? What does it do for us? What are the steps for creating IAM User Groups?
Tags: aws, cloudskills, beginners, cloud
Published: 2021-06-04 08:06:36

### User Groups in AWS:

&emsp; In AWS, User Groups are a way to combine users that share/ require similar permissions or policies.

&emsp; Such that, When certain policies/permissions are assigned to a group, those policies/permissions are applied to all of the users in that group.

&emsp; For example, you may create a group with three users, and then assign EC2 Access to the group, which allows those three users to access EC2 too.


### Creating an User Group in AWS: 

&emsp; We've discussed what is an IAM User and how to create an *IAM User* in this [article](https://sidharth.hashnode.dev/in-aws-what-is-an-iam-user-what-is-the-need-for-one-and-why-is-it-necessary)

• Create additional users (perhaps three) from your IAM account and memorise their passwords as well as the link (needed to login) provided on the Success page.

&nbsp; However, While creating those users, provide the 'AmazonS3FullAccess' permission/ policy.


![Screenshot_from_2021-05-25_21-56-58.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1622726088609/fZbv5jwmu.png)


• Now click on 'User Groups' from the 'IAM dashboard.'

![Screenshot_from_2021-05-25_21-48-44.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1622725975804/KBws-BnMi.png)



• Now click 'create group' in the following page and

&emsp; &emsp;  👉🏼 Provide a **Group name**   
&emsp; &emsp;  👉🏼 Select the Users who needed to be a part of the group.    
&emsp; &emsp;  👉🏼 And don't provide any permissions/ policies for now   
 
![Screenshot_from_2021-05-25_22-32-36.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1622725902665/vQdug-Rb8.png)



• Remember the link you've been provided after creating users? Use it to login in an incognito mode as an IAM User who is part of the group you've just created (or logout in the current tab before you login).

&emsp; • and then search for **EC2**  in the 'IAM Dashboard'  or 'search bar' and open it in new tab.

&emsp; • And you can see that you can access S3 as you've provided the permission directly while creating that user. And you can see error at EC2 tab since you've not provided any permission for that.

![Screenshot from 2021-05-25 22-02-43.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1622726152968/GvFwRPswp.png)


• Return to your '**IAM Account**' and click on the group you just created inside **User groups**.

&emsp; • then pick '**add permission**' > '**Attach policies**' from the '**permissions**' tab.

&emsp; •  select '**AmazonEC2FullAccess**' and save it.

• Now open that incognito tab and reload the **EC2** tab and you can see its working even though you haven't granted the permission directly to that user but have granted the permission to the group he is in.


![Screenshot_from_2021-05-25_22-00-03.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1622726335513/-PUjitSDh.png)



• Now try signing in with the rest of the users in that group and see whether they all have access to 'EC2'.




**Bottom Line:**

👉🏼 Users that require the same permissions can be grouped together, making the work of granting or deleting permissions easier.    

👉🏼 Changes made to a group are reflected to all users within that group.     






This is part of #100DaysOfCode of AWS started by [Sarthaksavvy](https://twitter.com/Sarthaksavvy) .
You can visit his profile on [Github](https://github.com/sarthaksavvy/100DaysOfAWS/)

Feel free to leave a comment if you enjoyed or disliked this post.  I'd appreciate it if you could provide feedback.

Follow me on [twitter](https://twitter.com/Srikanth74659)