Deleting an Inline Policy
You can delete an inline policy embedded in a user or a group at any time to remove the permissions it grants to this user or group.
Deleting an Inline Policy Using OSC CLI
Deleting an Inline Policy Embedded in a User
See the DeleteUserPolicy command sample in the documentation of the EIM API. |
Deleting an Inline Policy Embedded in a Group
See the DeleteGroupPolicy command sample in the documentation of the EIM API. |
Deleting an Inline Policy Using AWS CLI
Deleting an Inline Policy Embedded in a User
To delete an inline policy embedded in a user, use the delete-user-policy command following this syntax:
$ aws iam delete-user-policy \
--profile YOUR_PROFILE \
--user-name Jane \
--policy-name DevAccess \
--endpoint https://eim.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
user-name
: The name of the user. -
policy-name
: The name of the policy. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The specified inline policy is deleted and the corresponding permissions are removed for the user.
Deleting an Inline Policy Embedded in a Group
To delete an inline policy embedded in a group, use the delete-group-policy command following this syntax:
$ aws iam delete-group-policy \
--profile YOUR_PROFILE \
--group-name Dev \
--policy-name DevAccess \
--endpoint https://eim.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
group-name
: The name of the group. -
policy-name
: The name of the policy. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The specified inline policy is deleted and the corresponding permissions are removed for the users belonging to the group.
Related Pages
Corresponding API Methods
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.