{{ user.usergroups }} – User Groups

Returns an array of User Group names. Use |join(‘,’) filter to return a string

Basic usage:

{{ user.usergroups }}

Usage with parameters:

{{ user.usergroups(User ID) }}

Parameters:

  1. User ID (optional) – Specify the User Id or leave it blank to get the Current User’s User Groups Names.

Example:

{{ user.usergroups(5) }}

Example:

{{ user.usergroups|join(',') }}

What are your feelings

Leave a Reply

Updated on January 9, 2025