Skip to content

ReadAppRoleInstance

Answers whether the active principal holds one App Role.

App Roles are held Workspace-wide rather than per Item. Sudo and system contexts hold every App Role.

readonly prn: string

PRN that uniquely identifies this Role within the definition.

BaseRoleInstance.prn

assertRole(): true

Confirms that the active principal holds this Role.

true

true when the Role is held.

AssertRoleFailedError when the active principal does not hold this Role.


checkRole(): boolean

Reports whether the active principal holds this Role.

boolean