Role Based Access¶
A Device Users' Role can be used restrict access to specific Case Events, Event Forms, and inputs on Forms.
- Getting started with using Device User Roles
- Demo: Device User role based access to Event Forms
- Demo: Device user role based permissions for Case Events
To retrict access to an input on a form by role, use the T.user.getRoles()
function to get the roles of the currently logged in user.
<tangy-input
name="example"
label="Example"
show-if="T.user.getRoles().includes('admin')"
>
</tangy-input>