How to attach a managed policy to an IAM user

0 votes

Hi Team,

I have one IAM user in AWS. I want to attach a managed policy to that IAM user. How can I do that?

Nov 3, 2020 in AWS by akhtar
• 38,170 points
63 views

1 answer to this question.

0 votes

Hi@akhtar,

You can attach the specified managed policy to the specified user. You use this API to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy. The following attach-user-policy command attaches the AWS managed policy named AdministratorAccess to the IAM user named Alice.

$ aws iam attach-user-policy --policy-arn arn:aws:iam:ACCOUNT-ID:aws:policy/AdministratorAccess --user-name Alice
answered Nov 3, 2020 by MD
• 95,160 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to attach an Internet Gateway to a VPC?

To attach an Internet Gateway to a ...READ MORE

answered Feb 21, 2019 in AWS by Priyaj
• 58,120 points
353 views
+1 vote
1 answer

How to create an IAM user in AWS?

Hi@akhtar, To create new user in AWS, you ...READ MORE

answered Jun 1, 2020 in AWS by MD
• 95,160 points
213 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to attach a managed policy to an IAM group?

Hi@akhtar, You can attach the specified managed policy to ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,160 points
48 views
0 votes
1 answer

How to create a password for an IAM user?

Hi@akhtar, You can create a password for the specified ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,160 points
74 views