User

Notice

We have attached an extra organizations attribute to the native User Element. You can utilize this attribute on any User Element to get all of the associated Organizations.

Public Properties

All of the standard User Element public properties are available plus the following:

PropertyTypeDescription
organizationarray , Organization QueryOrganization Query criteria

Public Methods

All of the standard User Element public methods are available plus the following:

getOrganizations( $criteria = [] )

Returns: Organization Query

ArgumentAcceptsDescription
$criteriaarrayOrganization Query criteria
{% set organizations = currentUser.getOrganizations({limit: 10}).all() %}
<ul>
{% for organization in organizations %}
    <li>{{ organization.id }} - {{ organization.title }}</li>
{% endfor %}
</ul>