# How to Attach IAM Policy to User

### Table of contents

* [Tasks](https://abisec.gitbook.io/devsecops/aws/broken-reference)
* [Steps](https://abisec.gitbook.io/devsecops/aws/broken-reference)

#### Tasks <a href="#heading-tasks" id="heading-tasks"></a>

* An IAM user named `iamuser_mariyam` and a policy named `iampolicy_mariyam` already exist. Attach the IAM policy `iampolicy_mariyam` to the IAM user `iamuser_mariyam`.

#### Steps <a href="#heading-steps" id="heading-steps"></a>

1. IAM user`iamuser_mariyam` is already exists.
2.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728371443298/6c8dac70-9204-4a2b-821d-94b221c38468.png?auto=compress,format\&format=webp)
```

```
IAM → Policies
```

3\.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728372931962/78fb8158-bd1e-4dc6-9ff2-c5772ca9eab8.png?auto=compress,format\&format=webp)

IAM →Users → iamuser\_mariyam → Add permissions
```

4\.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728372995817/30954593-7a87-4716-a058-793ce30bb6ee.png?auto=compress,format\&format=webp)

Permission Options → Attach policies directly
```

5\.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728373192949/f3e14654-2d4c-4b82-a2bf-b2ab2d6cb8a5.png?auto=compress,format\&format=webp)

Click on Add permission
```

6\.

```
![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728373234789/5fb0ddd8-c6fa-494f-a10a-616d2f1392eb.png?auto=compress,format\&format=webp)

`iampolicy_mariyam` to the IAM user `iamuser_mariyam` is attached now.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1728373298545/b49208ad-fbfe-49b6-a039-25f97115c2f5.png?auto=compress,format\&format=webp)
```

IAMCloudCloud ComputingtrendsTrendingAWSAmazon Web ServicesPolicyDevops
