security iam policy modify
You can use iam policy modify
command to modify an IAM
Policy from input identities (Users, Groups, or Roles).
Syntax
- CLI
-
NOTE
- This operation is only supported on primary cluster group.
-
To create a policy using data content (instead of file), ensure a valid JSON string with
-is_file false
option is provided. -
Modify
operation is NOT supported by Identity Policy with statusEnforcing, Disarming
. Modify
operation involving simultaneous updates in both sections —Active
andStatement
— is NOT supported.
maprcli security iam policy modify -name <Policy Name> -content (<File Path> | <String Content>) [ -is_file ( true | false ) ]
Parameters
Parameter | Description |
---|---|
name |
(Required) Name of the policy. |
content |
(Required) Use one of the following
option:
|
-is_file false |
(Optional) You can select either
True or False. Default value : False
|
Example
maprcli security iam policy modify -name Policy1 -content /tmp/newcontent.json -is_file true -json
{
"timestamp":1726216989302,
"timeofday":"2024-09-13 01:43:09.302 GMT-0700 AM",
"status":"OK",
"total":0,
"data":[
],
"messages":[
"Identity Policy 'Policy1' modified successfully"
]
}