security iam role mapping

Displays mapping information of the specified Identity (user/group) to the assigned List of Custom Roles.

Syntax

You can iam role mapping command to get mapping information of the specified Identity (user/group) to the assigned List of Custom Roles.
NOTE
Multiple types of identities (users, groups), and number of identities (comma-separated names) can be specified together in the same command.
maprcli security iam role mapping [ -users <User Names> -groups <Group Names> ]
Example:
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":""
                }
        ]
}