Auckland, New Zealand
+64 2239 10000

MSCRM :: Liquid – Check is user has a role type


While working of my portal i needed to query what type of “Web Role” a user had, this allowed me to create extra functionality in my portal from changing what information was displayed on a page, to adding an additional menu to the Nav.

You will need to create a new “Web Role” in Dynamics first. The name below must be the same.


{% assign is_staff = user | has_role: 'Employee Users' %}
{% if is_staff %}
<!-- Add what ever code you want here -->

<li class="divider-vertical" aria-hidden="true"></li>

{% endif %}