> 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`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: createGroup(group: Group, options: CreateGroupOptions) # Method package: wixGroupsV2 # Method menu location: wixGroupsV2 --> groups --> createGroup # Method Link: https://dev.wix.com/docs/velo/apis/wix-groups-v2/groups/create-group.md # Method Description: Creates a group. When a group is created, the newly created group is added to the [Groups List](https://support.wix.com/en/article/wix-groups-about-your-groups-pages#groups-group-list) page of a site. Specify a `creatorId` to set the group's creator. The group's creator will automatically become a group admin, see Terminology ([REST](https://dev.wix.com/docs/rest/crm/community/groups/terminology.md) | [SDK](https://dev.wix.com/docs/sdk/backend-modules/groups/terminology.md)). Wix users determine who can create a group. This setting can be found in [a site's Dashboard](https://www.wix.com/my-account/site-selector/?buttonText=Select%20Site&title=Select%20a%20Site&autoSelectOnSingleSite=true&actionUrl=https:%2F%2Fwww.wix.com%2Fdashboard%2F%7B%7BmetaSiteId%7D%7D%2Fwix-groups/settings?) underĀ **Groups > General Settings > Group Creation**. If set to **members with approval**, site members can create a group with the Create GroupĀ method, and the group becomes a `createRequest` with a status of `PENDING`. A Wix user either approves or rejects the request to create a group. If set to **all site members**, site members can create a group with the Create Group method and no approval is required. If set to **only admins**, only Wix users can create a group with the Create Group method. Default is set to **members with approval**. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## createGroup example for dashboard page code ```javascript import { groups } from 'wix-groups.v2'; async function createGroup(group, options) { try { const result = await groups.createGroup(group, options); return result; } catch (error) { console.error(error); // Handle the error } } ``` ## createGroup example for exporting from backend code ```javascript import { groups } from 'wix-groups.v2'; import { webMethod, Permissions } from 'wix-web-module'; import { elevate } from 'wix-auth'; const elevatedCreateGroup = elevate(groups.createGroup); export const createGroup = webMethod( Permissions.Anyone, async (group, options) => { try { const result = await elevatedCreateGroup(group, options); return result; } catch (error) { console.error(error); // Handle the error } } ); ``` ---