Using Console
Using CLI
<user-name>
with the actual username of the user you want to remove Administrator Access from.
AmazonEC2FullAccess
policy.
Run the following command to attach a policy to the user:
<user-name>
with the actual username of the user, and <policy-arn>
with the ARN of the policy you want to attach.
<user-name>
with the actual username of the user. The command should not display the AdministratorAccess
policy.
Using Python
detach_user_policy
method.