security iam role remove

The security iam role remove command deletes the specified custom role.

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

NOTE
A role can be removed only if the role is NOT mapped to a user or group.

Syntax

CLI
maprcli security iam role remove -name <Role Name>
REST
Request Type POST
Request URL
http[s]://<host>:<port>/rest/iam/role/remove?<parameters>

Parameters

Parameter Description
name (Required) Name of the role.

Example

Delete the Eng role

maprcli security iam role remove -name Eng -json
{
        "timestamp":1726571893152,
        "timeofday":"2024-09-17 04:18:13.152 GMT-0700 AM",
        "status":"OK",
        "total":0,
        "data":[
        
        ],
        "messages":[
                "Successfully removed the role 'Eng'."        
        ]
}

REST

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