UserGroupModel
This document is for a version of Craft CMS that is no longer supported. Please refer to the latest version →
Whenever you’re dealing with a user group in your template, you’re actually working with a UserGroupModel object.
# Simple Output
Outputting a UserGroupModel object without attaching a property or method will return the group’s name:
<li>{{ group }}</li>
# Properties
UserGroupModel objects have the following properties:
# id
The ID of the user group.
# name
The name of the user group.
# handle
The handle of the user group.
# Methods
UserGroupModel objects have the following methods:
# can( 'permission' )
Returns whether the user group has a given permission.