IAM
Published: 2024-06-29 16:44:26

What can _**iam(identity access management)**_ do to you as an organization or individuals?. let me help you to get the basic knowledge about it.

**IAM** is a service that allows you to manage users and their access to the AWS console. With IAM, you can create users, grant permissions, and manage access to your AWS resources. It also enables you to create groups and roles ,  let say you have a company called "TechGuru" , your company will have software developer , HR manager, E.T.C,  now these people will need resources of the company to work with thereby, you need to create users for each of your workers right?, yes IAM can help you to do that and your company might have various department which this department are groups and they will also need resources to work with , IAM can also help you to do that.

Now let learn how to create users for your workers and also adding then to groups if needed

Sign in to the AWS Console: Log in using your root account credentials.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hfwgtkoanqye5aoy4e0j.png)

search for IAM  and click on the IAM

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hrsmewv1mes744ceudjw.png)

Now click on create user 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g8emgbc9jytu8xgm1mev.png)

now input the name of the user and the user can generate his/her passwords but in this case i will allow aws to generate a password for me 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/66zqx9vcn3xuuk6mmkn9.png)

We can learn that a user can only change his/her password and username but can not access the company resources unless he/she is given permission.  Before we give the permissions  , let imagine the user we just created is part of IT department , let create a group for IT department because any permission we assign to the group, any user within that group can have this permission ,so we don’t need to give each user permission, they will just inherit it from the group.
if you look at the picture down here 👇 you will see "add user to the group " since we don’t have a group, let create a group by clicking on create group

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9933o0q85gdqowimi6rw.png)

looking at the image below , i have given the group name "IT DEPARTMENT" 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7mjz3yw3xxc6y83eadlm.png)

Now before we click on create user , we need to give it permission
what are permission ?  Permissions in AWS are controlled using IAM policy documents, which are written in JSON (JavaScript Object Notation). These documents specify what actions are allowed or denied for a particular user, group, or role.

Here’s a basic example of a JSON policy document:

```
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "*",
      "Resource": "*"
    }
  ]
}

```
now if you don't understand what this code above is , don't worry , we will cover that in the later lesson
Now let give our group permission

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qvz9kdqmtcs3anofdjig.png)

From the picture above we have given the group some permission, now let create the group 

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/49ym4fdl6smoqkdqb4d3.png)

Now we can see that our group is created and i have clicked on the group and now we can create user by clicking on the next button

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yvlor7llqtnig8gnt6hp.png)

looking at the picture above this is just the review section , so let check if everything is okay and correct, let click on create user

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/l6b8p28rlkw16bahm06t.png)
looking at the picture above we can see that we have create a user 
you can download load the .cv file to see the user credential  , now let return to our user list to see our user

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/q066vqc3x0qiy9p9v2l7.png)

Now our user is created.
Join me next week as we dive into s3(Simple Storage Services)
Thank you.