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:
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(',') }}
Leave a Reply
You must be logged in to post a comment.