security iam policy list

Lists all existing identity access management (IAM) policies.

You can use iam policy list command to list all the existing identity access management (IAM) policies.

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

Syntax

CLI
maprcli security iam policy list -json
REST
Request Type GET
Request URL
http[s]://<host>:<port>/rest/iam/policy/list

Parameters

Parameter Description
cluster (Optional) Name of the policy.
limit (Optional) Specify the limit and default values, for example, [ -limit <Limit>. default: 2147483647 ].
start (Optional) Specify the start, and default values, for example, [ -start <Start>. default: 0 ].

Example

List details of current IAM policies

CLI

maprcli security iam policy list -json
{
        "timestamp":1726218513405,
        "timeofday":"2024-09-13 02:08:33.405 GMT-0700 AM",
        "status":"OK",
        "total":2,
        "data":[
                {
                        "Name":"DenyVol",
                        "Id":2,
                        "Description":"Deny Volume",
                        "Version":"1.0",
                        "Owner":"mapr",
                        "Created":"2024-09-12 03:39:13",
                        "Updated":"",
                        "Active":true,
                        "Identities":{
                                "Users":"user3",
                                "Groups": "",
                                "Roles": ""
                        },
                        "Status":"Enforced"
                },
                {
                        "Name":"AllowVol",
                        "Id":1,
                        "Description":"Allow Volume",
                        "Version":"1.0",
                        "Owner":"root",
                        "Created":"2024-09-12 03:39:05",
                        "Updated":"2024-09-13 01:43:08",
                        "Active":false,
                        "Identities":{
                                "Users": "user2,user3",
                                "Groups": "fabric-manager",
                                "Roles": ""
                        },
                        "Status":"Disarmed"
                }
        ]
}
REST
curl -u <username> -X GET https://server.sj.us:8443/rest/security/iam/policy/list