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

has_role
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 %}
Recent Comments