Skip to content
On this page

Partner: Rbac API ​

EndpointMethodDescription
/api/v0/partnerRpc/rbac.listAssignedUserRolesjsonRpcList assigned user roles
/api/v0/partnerRpc/rbac.getUserRolesLastModifiedjsonRpcGet user roles last modified

List assigned user roles ​

Method: jsonRpc

HTTP Method: POST

Path: /api/v0/partnerRpc/rbac.listAssignedUserRoles

Request:

{
    "userId": string
}

Response:

{
    "data": {
        "roles": [{
            "id": string  // id of role template
            "roleName": string  // name of role template
            "targetType": string  // type of target (like network, room or prop)
            "isBuildIn": bool  // is system build in role (cannot be overridden)
            "permissions": [ string ]  // list of role permissions
            "targetId": string  // optional, id of object role is linked to
        }]
    }
    "error": { "status": bool, "code": int, "message": string }
}

Get user roles last modified ​

Method: jsonRpc

HTTP Method: POST

Path: /api/v0/partnerRpc/rbac.getUserRolesLastModified

Request:

{
    "userId": string
}

Response:

{
    "data": {
        "lastModified": timestamp
    }
    "error": { "status": bool, "code": int, "message": string }
}