> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: JoinGroupRequests



## Article: Introduction

## Article Link: https://dev.wix.com/docs/velo/apis/wix-groups-v2/join-group-requests/introduction.md

## Article Content:

---
title: Introduction
---

# Introduction

> **Note:** This module is
> [universal](/api-overview/api-versions#universal-modules).
> Functions in this module can run on both the backend and frontend,
> unless specified otherwise.

The JoinGroupRequests API provides functionality for managing requests to join a group.

> **Notes:** 
+ This module is only relevant for private groups. 
+ When a group's `privacyStatus` is updated from `PRIVATE` to `PUBLIC`, all pending join requests for that group are automatically approved.
+ When a group's `privacyStatus` is updated from `PRIVATE` to `SECRET`, all pending join requests for that group are automatically rejected. 
+ A site member can only join a group if they have a [public profile](https://support.wix.com/en/article/wix-groups-member-privacy-settings-for-groups).
  
## Settings for a typical use case
+ Group members with group admin permissions determine who can join their group by setting their group [privacy level](https://support.wix.com/en/article/wix-groups-about-groups#your-groups-privacy-permissions).
+ If a group's privacy level is set to `PRIVATE`, a site member can request to join the group on your site's Groups List page.
+ Only site admins or group admins can approve or reject site member requests to join the group, unless the group setting `membersCanApprove` is set to `true`. 
+ **Note:** If the `wix-auth` [`elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function is used, all permissions are overridden,, and all site members (including non-group members) can approve or reject site member requests to join a group.  
+ When a site member's request to join the group is approved, the member is added to the group. 
+ If a group's privacy level is set to `PUBLIC`, a site member can join the group (no request necessary). 
+ If a group's privacy level is set to `SECRET`, only site members added by an existing group member can join the group (no request necessary). 
 
The JoinGroupRequests API provides functionality allowing you to:  
 + [Approve](https://dev.wix.com/docs/velo/apis/wix-groups-v2/join-group-requests/approve-join-group-requests.md) requests to join a group. 
 + [List](https://dev.wix.com/docs/velo/apis/wix-groups-v2/join-group-requests/list-join-group-requests.md) requests to join a group. 
 + [Query](https://dev.wix.com/docs/velo/apis/wix-groups-v2/join-group-requests/query-join-group-requests.md) requests to join a group.
 + [Reject](https://dev.wix.com/docs/velo/apis/wix-groups-v2/join-group-requests/reject-join-group-requests.md) requests to join a group. 

## Permissions information
Permission requirements for the functions in this API can be overridden using the `wix-auth` [`elevate()`](https://www.wix.com/velo/reference/wix-auth/elevate) function. This will have the following effects:
 + [`approveJoinGroupRequests()`](https://dev.wix.com/docs/velo/apis/wix-groups-v2/join-group-requests/approve-join-group-requests.md) - All site members (including non-group members) can approve site member requests to join a group.
 + [`listJoinGroupRequests()`](https://dev.wix.com/docs/velo/apis/wix-groups-v2/join-group-requests/list-join-group-requests.md) - All site members (including non-group members) can see requests to join a group.
 + [`queryJoinGroupRequests()`](https://dev.wix.com/docs/velo/apis/wix-groups-v2/join-group-requests/query-join-group-requests.md) - All site members (including non-group members) can query requests to join a group.
 + [`rejectJoinGroupRequests()`](https://dev.wix.com/docs/velo/apis/wix-groups-v2/join-group-requests/reject-join-group-requests.md) - All site members (including non-group members) can reject site member requests to join a group.

<blockquote class='warning'>
<p><strong>Warning:</strong> Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.</p>
</blockquote>

To use the JoinGroupRequests API, import `JoinGroupRequests` from the `wix-groups-v2` module:

```javascript
import { JoinGroupRequests } from "wix-groups-v2";
```
