Skip to content

Security-based Conditionality

In cards, it may be desired to change the state of components for users with particular access groups. All formula-driven properties can be edited to change state depending on access level.

The most common property to adjust in a component depending on user access would be the Visible property. This property determines whether something is shown or hidden, and is a quick way to hide something from a particular group or vice versa.

Hiding / Showing a Component

In the Visible property of any desired component, open the formula editor by clicking the Pi icon. In this example, we are only showing a link to a Planning module if the user has an access group that indicates they should be able to see the link to the Planning module, or if they are an admin.

vb
IF(
    OR(
        USERHASGROUP("admin", VARIABLE("user-id"))
    ,
        USERHASGROUP("Planning", VARIABLE("user-id"))
    )
,
    "Yes"
,
    "No"
)