Go to page content


Information about user groups.

The m_group model gives access to group settings and group memberships.

The group settings are a simple property list. For example the settings of the admin group which is returned by“m.group[group_id]” are:


All other m_group properties are accessed like: m.group.members[group_id]

The following m_group model properties are available in templates:

PropertyDescriptionExample value
membersList of a group’s member ids.[1]


List of a group’s leader ids.[679, 1042]
observersList of a group’s oberver ids.[8921]

Roles the given user has. Returns a property list with role names as keys. The available roles are: admin, supervisor, community_publisher and public_publisher. Used as m.group.roles[user_id]


This page is part of the Zotonic documentation, which is licensed under the Apache License 2.0.