The JoinRequests API provides functionality for managing requests to join a group.
Notes:
privacyStatus
is updated from PRIVATE
to PUBLIC
, all pending join requests for that group are automatically approved.privacyStatus
is updated from PRIVATE
to SECRET
, all pending join requests for that group are automatically rejected.PRIVATE
, a site member can request to join the group on your site's Groups List page.membersCanApprove
is set to true
.suppressAuth
option is set to true
, all permissions are overwritten, and all site members (including non-group members) can approve or reject site member requests to join a group.PUBLIC
, a site member can join the group (no request necessary).SECRET
, only site members added by an existing group member can join the group (no request necessary).The JoinRequests API provides functionality allowing you to:
Note: You can override the permissions below by setting the suppressAuth
option to true
.
Functions | Permissions |
---|---|
approveJoinRequests() , listJoinRequests() , queryJoinRequests() , rejectJoinRequests() | Site admin, group admin |
To use the JoinRequests API, import joinRequests
from the wix-groups-backend
module: