Partner: Rbac API
| Endpoint | Method | Description |
|---|---|---|
| /api/v0/partnerRpc/rbac.listAssignedUserRoles | jsonRpc | List assigned user roles |
| /api/v0/partnerRpc/rbac.getUserRolesLastModified | jsonRpc | Get 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 }
}