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,260 points
559 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,460 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,100 points
1,029 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,460 points
1,331 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,460 points
554 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,460 points
746 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP