Skip to content

Role Based Access

A Device Users' Role can be used restrict access to specific Case Events, Event Forms, and inputs on Forms.

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>