security iam role attach

The security iam role attach assigns identities such as Users, and Groups to a Custom Role.

Syntax

IMPORTANT
This operation is supported on only primary cluster group.
maprcli security iam role attach -name <Role Name> [ -users <User Names> -groups <Group Names> ]

Parameters

Parameter Description
name (Required) Name of the role.
users (Optional) Name of the user.
groups (Optional) Name of the group.

Example

maprcli security iam role attach -name Eng -users user1 -json
{
        "timestamp":1726571570127,
        "timeofday":"2024-09-17 04:12:50.127 GMT-0700 AM",
        "status":"OK",
        "total":0,
        "data":[
        
        ],
        "messages":[
                "Successfully attached the role 'Eng'."
        ]
}