security iam role mapping

Displays role-IAM policy mapping information.

The security iam role mapping displays information related to the role or roles that are assigned to the specified identities, that is one or more users and/or groups.

Syntax

CLI
maprcli security iam policy mapping [-users <User Names>] [-groups <Group Names>] [-roles <Role Names>]
REST
Request Type GET
Request URL
http[s]://<host>:<port>/rest/iam/role/mapping?<parameters>

Parameters

Parameter Description
users (Optional) Name of the users. You can specify multiple users in the command.
groups (Optional) Name of the groups. You can specify multiple users in the command.

Example

Display role or roles assigned to the mapr user, and the test1, test2 groups

maprcli security iam role mapping -users mapr -groups test1,test2 -json
{
        "timestamp":1727765455055,
        "timeofday":"2024-09-30 11:50:55.055 GMT-0700 PM",
        "status":"OK",
        "total":3,
        "data":[
                {
                        "IdType":"USER",
                        "IdName":"mapr",
                        "IamRoles":"role2,my-role"
                },
                {
                        "IdType":"GROUP",
                        "IdName":"test1",
                        "IamRoles":"my-role"
                },
                {
                        "IdType":"GROUP",
                        "IdName":"test2",
                        "IamRoles":""
                }
        ]
}

REST

curl -u <username> -X GET 'https://server.sj.us:8443/rest/security/iam/role/mapping?users=mapr&groups=test1,test2'