The CreateRequests API provides functionality for managing requests to create a group.
Note: This module is only relevant if admin approval is required for creating a group, or if a function's suppressAuth
option is set to true
.
createGroup()
function to create a group, and the group becomes a createRequest
with a status of PENDING
.suppressAuth
option is set to true
, all permissions are overwritten, and all site members can approve or reject requests to create a group.createRequest
status changes to APPROVED
, and the newly created group is added to the Groups List page of your site.The CreateRequests API provides functionality allowing you to:
Note: You can override the permissions below by setting the suppressAuth
option to true
.
Functions | Permissions |
---|---|
approveCreateRequests() , listCreateRequests() , queryCreateRequests() , rejectCreateRequests() | Site admin |
To use the CreateRequests API, import createRequests
from the wix-groups-backend
module: