Role object fields
Example of JSON-formatted role instance:
{
"role":
{
"role_id": "34c88e5c-9201-11e5-92fa-e03f497dbdff",
"name": "Administrator",
"access_level": "system",
"tenant_id": "34c7f1f6-9201-11e5-a739-e03f497dbdff"
"permissions":
{
"roles": ["view"],
"users": ["view", "edit", "delete"],
"groups": ["view"],
"calls": ["view", "live_monitor", "categorize", "playback", "add_notes"],
"call_categories": ["view", "edit", "delete"],
"call_notes": ["view", "pin"]
}
}
}
Field | Type | Description |
---|---|---|
name | string | Role name. |
role_id | UUID | Unique ID of role assigned by MiaRec when role is created. |
tenant_id | UUID | ID of parent tenant object. This field is available only when multi-tenancy is enabled in MiaRec. |
access_level | string | Access level setting specifies which resources are accessible by user of such role. Supported values:
|
permissions | dictionary | Permissions setting specifies what operations are permitted on the accessible resources. These operations include view, edit, delete, playback etc. Format:
Example:
In above example, user has read-only (view) access to groups recources and full access rights (view, edit and delete) to users resources. MiaRec supports very granular configuration of role permissions. A list of resources and supported permissions may be extended in each new software release. We recommend to use web portal to create a reference role with all checkboxes checked and then retrieve such role via REST API. In the response message you will be able to see a list of all supported resources and permissions on your version. |