The Groups API provides functionality for managing groups, including creating, deleting, updating, and querying groups.
Note: There is a new version of this API. If you're already using this module in your code, it will continue to work.
createGroup()
function, and the group becomes a createRequest
with a name of PENDING
. The site admin either approves or rejects the request to create a group.createGroup()
function (no approval required).createGroup()
function.suppressAuth
option is set to true
, all permissions are overwritten, and all site members can create a group.The Groups API provides functionality allowing you to:
Note: You can override the permissions below by setting the suppressAuth
option to true
.
Functions | Permissions |
---|---|
createGroup() | Manage in your site's Dashboard |
deleteGroup() , updateGroup() | Site admin, group admin |
listGroup() , getGroup() , queryGroup() | For public & private groups: any site member For secret groups: group members, site admin |
To use the Groups API, import groups
from the wix-groups-backend
module:
1