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
            "roleName": string
            "targetType": string  // optional, type of object role could be linked to, like network/room/prop
            "isBuildIn": bool  // true for system build in roles (cannot be deleted)
            "permissions": [ string ]
            "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 }
}