role_refs of tree_entity_roles; reader, writer and admin are the names of the built-in roles, so a role cannot have one of them as its external_id. A role only applies to the records of the package and never changes company-wide rights. A package with groups or roles of your own can be imported only by a user with the Members management permission, and only if the tariff includes groups.resource_files of the manifest, with "resource": "roles". An entity can have any number of files. See Bundle format.[
{
"resource": "roles",
"path": "resources/roles.json"
}
]| Field | Type | Required | Description |
|---|---|---|---|
external_id | string (ExternalId) | Yes | Your own identifier of the record, for example k-mrr, unique within the resource across all of its files and case sensitive. Other records refer to this one by it.Constraints: 1–512 characters. |
name | string | Yes | Name of the role, for example Metric analyst. Up to 128 characters.Constraints: 1–128 characters. |
template | enum | Yes | The built-in role whose permissions this role gets: reader, writer or admin.Constraints: one of reader, writer, admin. |
role_refs{
"external_id": "ter-analyst",
"name": "Metric analyst",
"template": "writer"
}