security iam policy modify

You can use iam policy modify command to modify an IAM Policy from input Identities (Users/Groups/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 status Enforcing, Disarming. For more details please refer here.

  • Modify operation involving simultaneous updates in both sections —Active and Statement— is NOT supported.
maprcli security iam policy modify -name <Policy Name> -content (<File Path> | <String Content>) [ -is_file ( true | false ) ]

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 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"
        ]
}