How to Create an IAM User, Group, and Attach Policies in AWS

Introduction
AWS Identity and Access Management (IAM) helps you securely manage access to AWS services and resources. Using IAM, you can create users, organize them into groups, and assign permissions through policies.
Official AWS Documentation:
Step 1: Log in to AWS Console
Open the AWS Management Console.
Search for IAM in the search bar.
Click on IAM to open the dashboard.
Step 2: Create an IAM Group
IAM Groups help manage permissions for multiple users.
Steps
In the IAM Dashboard, click User Groups.
Click Create Group.
Enter a group name.
Example:
Developers
Click Next.
Skip permissions for now (or attach policies if required).
Click Create Group.
The group is now created successfully.
Step 3: Create an IAM User
Steps
In the IAM Dashboard, click Users.
Click Create User.
Enter a username.
Example:
developer-user
- Select the access type:
AWS Management Console Access
Programmatic Access (CLI/API)
Set a custom password or auto-generated password.
Click Next.
Reference:
Step 4: Add User to Group
Select Add user to group.
Choose the group you created earlier.
Example:
Developers
- Click Next.
This automatically grants the permissions assigned to the group.
Step 5: Review User Details
Review all configurations.
Click Create User.
AWS will create the IAM user.
Step 6: Create an IAM Policy
Policies define what actions users can perform.
Steps
In IAM Dashboard, click Policies.
Click Create Policy.
Choose:
Visual Editor
JSON Editor
Select a service.
Example:
Amazon EC2
- Select permissions:
Start Instances
Stop Instances
Describe Instances
Click Next.
Enter policy name.
Example:
EC2-Management-Policy
- Click Create Policy.
Reference:
Step 7: Attach Policy to Group
Steps
Go to User Groups.
Select your group.
Open the Permissions tab.
Click Add Permissions.
Select Attach Policies.
Search for your policy.
Example:
EC2-Management-Policy
Select the policy.
Click Add Permissions.
Now every user in that group receives the assigned permissions.
Step 8: Verify Permissions
Open Users.
Select the IAM user.
Click Permissions.
Verify that permissions are inherited from the group.
Architecture Flow
IAM Policy
↓
IAM Group
↓
IAM User
↓
Access AWS Resources




