Skip to content

TemplateRoleDefinition

Describes a Template Role that is resolved per Item by a handler.

  • BaseRoleDefinition

handler: TemplateRoleCallback

Returns the access identifiers that hold this Role for the given Item; the Runtime grants the Role when the current principal holds any of them.


readonly key: string

Key of the Role, unique within its App or Template.

BaseRoleDefinition.key


readonly optional label?: string

Display label given when the Role was added.

BaseRoleDefinition.label


readonly prn: string

PRN of the Role: prn::<app>:role/<key> for an App Role, <templatePrn>/role/<key> for a Template Role.

BaseRoleDefinition.prn