security iam role detach

The security iam role detach command removes or detaches identities such as users and groups from a custom role.

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

Syntax

CLI
maprcli security iam role detach -name <Role Name> [ -users <List of Users> ] [ -groups <List of Groups> ]
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/iam/role/detach?<parameters>

Parameters

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

Example

Detach role Eng from the user user1

CLI

maprcli security iam role detach -name Eng -users user1 -json
{
        "timestamp":1726571645332,
        "timeofday":"2024-09-17 04:14:05.332 GMT-0700 AM",
        "status":"OK",
        "total":0,
        "data":[

        ],
        "messages":[
                "Successfully detached the role 'Eng'."
        ]
}

REST

curl -u <username> -X POST https://server.sj.us:8443/rest/security/iam/role/detach?name=Eng\&users=user1