security iam policy detach
You can use iam policy detach
command to detach an
identity Access Management (IAM) Policy from input identities
(Users, Groups, or Roles).
Syntax
- CLI
-
NOTE
- This operation is only supported on primary cluster group.
Attach
operation is NOT supported by Identity Policy with status - Enforcing, Disarming.- Multiple types of identities (users, groups), and number of identities (comma-separated names) can be specified together in the same command.
maprcli security iam policy detach -name [ -users <User Names> -groups <Group Names> -roles <Role Names> ]
Parameters
Parameter | Description |
---|---|
name |
(Required) Name of the policy. |
users |
(Optional) List of users. |
groups |
(Optional) List of groups |
roles |
(Optional) Name of roles |
Example
maprcli security iam policy detach -name Policy1 -users user3 -json
{
"timestamp":1726154439156,
"timeofday":"2024-09-12 08:20:39.156 GMT-0700 AM",
"status":"OK",
"total":0,
"data":[
],
"messages":[
"Identity Policy 'Policy1' detached successfully"
]
}