security iam policy

You can use the security iam policy command to do the following:

  • manage identity access management (IAM) policies
  • attach identity policies to identities or detach IAM policies from identities, that is, users, groups and roles.
  • retrieve information about IAM policy - identity(users, groups, roles) mapping

You can run the security iam policy command on a primary cluster only.

Syntax

maprcli security iam policy

Example

$ maprcli security iam policy -help
security iam policy

        create
                -name <Policy Name>
                -content (JSON String | JSON File)
                [ -is_file (true|false). default: false ]

        modify
                -name <Policy Name>
                -content (JSON String | JSON File)
                [ -is_file (true|false). default: false ]
  
        remove
                -name <Policy Name>

        info
                -name <Policy Name>

        list
                [ -start <Start>. default: 0 ]
                [ -limit <Limit>. default: 2147483647 ]

        attach
                -name <Policy Name>
                [ -users <List of Users> ]
                [ -groups <List of Groups> ]
                [ -roles <List of Roles> ]

        detach
                -name <Policy Name>
                [ -users <List of Users> ]
                [ -groups <List of Groups> ]
                [ -roles <List of Roles> ]

        mapping
                [ -users <List of Users> ]
                [ -groups <List of Groups> ]
                [ -roles <List of Roles> ]

See the specific page of the respective command for details, listed as follows: