CmdID

CmdID / aws / aws iam

aws iam detach-user-policy

Removes the specified managed policy from the specified user. AWS CLI reference

2 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Options

2 in the AWS CLI reference
--policy-arnThe Amazon Resource Name (ARN) of the IAM policy you want to detach.
--user-nameThe name (friendly name, not ARN) of the IAM user to detach the policy from.