ReadAppRoleInstance
Answers whether the active principal holds one App Role.
Remarks
Section titled “Remarks”App Roles are held Workspace-wide rather than per Item. Sudo and system contexts hold every App Role.
- Grant access
- AppRoleBuilder for declaring an App Role
- AppRoleDefinition for the emitted Definition
Extends
Section titled “Extends”Extended by
Section titled “Extended by”Properties
Section titled “Properties”
readonlyprn:string
PRN that uniquely identifies this Role within the definition.
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”assertRole()
Section titled “assertRole()”assertRole():
true
Confirms that the active principal holds this Role.
Returns
Section titled “Returns”true
true when the Role is held.
Throws
Section titled “Throws”AssertRoleFailedError when the active principal does not hold this Role.
checkRole()
Section titled “checkRole()”checkRole():
boolean
Reports whether the active principal holds this Role.
Returns
Section titled “Returns”boolean

