# Group creation request with createGroup()

**URL:** <https://forum.wixstudio.com/t/group-creation-request-with-creategroup/71163>\
**Category:** Ask the community\
**Tags:** wix-groups-backend, wix-editor, question, code, wix\
**Created:** [May 30, 2025, 10:48am UTC](https://forum.wixstudio.com/t/group-creation-request-with-creategroup/71163 "2025-05-30T10:48:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paul\_Yagami](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Paul\_Yagami](https://forum.wixstudio.com/u/Paul_Yagami)\
**Post date:** [May 30, 2025, 10:48am UTC](https://forum.wixstudio.com/t/group-creation-request-with-creategroup/71163/1 "2025-05-30T10:48:49Z")

</div>

**Question:**  
Is it possible to send group creation request to the dashboard from code ?

**Product:**  
Wix Editor

**What are you trying to achieve:**  
I’m trying to use the [createGroup() backend function](https://dev.wix.com/docs/velo/apis/wix-groups-backend/groups/create-group) so that when a member creates a group through a custom form, a request is sent to the website dashboard.  
I’ve selected the correct parameters (“member with approval”) in the group settings, but when I try to create a group using the test website while logged in as a member, I get a “Forbidden” error when createGroup is called.

The “Create Group” button inside the [Groups Feed](https://support.wix.com/en/article/wix-groups-about-the-groups-feed) correctly sends a request to the dashboard, but when triggered via code, it doesn’t work.

**What have you already tried:**  
Elevating the function, changing the group settings parameters. It just let the member create the group without sending the request.

**Backend code :**

```javascript
import { groups } from "wix-groups-backend"; 
import {webMethod, Permissions } from "wix-web-module"; 

export const myCreateGroupFunction = webMethod( Permissions.SiteMember,
  (groupInfo, options) => { 
    return groups 
    .createGroup(groupInfo, options)
    .then((createdGroup) => { 
       return createdGroup; 
    }) 
    .catch((error) => { 
        console.error(error); 
    }); 
  }, 
);

```

---

<div class="post-metadata">

**Author:** ![thomasj](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/thomasj/32/30791_2.png) [@thomasj](https://forum.wixstudio.com/u/thomasj)\
**Post date:** [June 2, 2025, 2:36pm UTC](https://forum.wixstudio.com/t/group-creation-request-with-creategroup/71163/2 "2025-06-02T14:36:47Z")

</div>

I would try [functional testing](https://dev.wix.com/docs/develop-websites/articles/workspace-tools/testing-monitoring/functional-testing/test-backend-functions-with-functional-testing) on your backend method with the following input parameters:

```javascript
{
    "groupInfo": {
        "name": "My New Group"
    },
    "options": null
}

```

If the promise resolves, this means there might be a issue with the parameter being passed to the backend method. It is also possible there are permission issues on the page with the custom request form.

---

<div class="post-metadata">

**Author:** ![Paul\_Yagami](https://avatars.discourse-cdn.com/v4/letter/p/bbce88/32.png) [@Paul\_Yagami](https://forum.wixstudio.com/u/Paul_Yagami)\
**Post date:** [June 3, 2025, 10:27am UTC](https://forum.wixstudio.com/t/group-creation-request-with-creategroup/71163/3 "2025-06-03T10:27:52Z")

</div>

The promise resolves correctly when testing, but instead of creating a group request, it directly creates the group. I assume this is because when testing I’m using the function as an admin.

The groupInfo parameter only contains the group’s name and description, and the options parameter includes the member ID (not useful here).  
My custom form works when I let members create groups without approval so the problem doesn’t come from the parameters.

The page with the custom form is simply restricted to members but nothing more.

I just don’t understand why the function doesn’t behave as described in the documentation :  
“If set to admin approval required, a site member uses the createGroup() function to create a group, and the group becomes a createRequest with a status of PENDING.”

---

<div class="post-metadata">

**Author:** ![Stan\_Gretov](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/stan_gretov/32/110781_2.png) [@Stan\_Gretov](https://forum.wixstudio.com/u/Stan_Gretov)\
**Post date:** [September 12, 2025, 5:08pm UTC](https://forum.wixstudio.com/t/group-creation-request-with-creategroup/71163/4 "2025-09-12T17:08:05Z")

</div>

@Paul_Yagami were you able to resolve this? I’m having the exact same issue. Site member attempts to create a group and based on documentation it should go to pending but instead getting a Forbidden error
