security iam policy detach
You can use iam policy detach
command to detach an Identity Access
Management (IAM) Policy from input Identities (Users/Groups/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. For more details please refer here.- 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 |
Name of the Policy. |
users |
List of Users. |
groups |
List of Groups. |
roles |
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"
]
}