# How to programmatically add members to groups 

**URL:** <https://forum.wixstudio.com/t/how-to-programmatically-add-members-to-groups/30563>\
**Category:** Ask the community\
**Tags:** wix-members-area, question, code\
**Created:** [October 25, 2020, 12:12pm UTC](https://forum.wixstudio.com/t/how-to-programmatically-add-members-to-groups/30563 "2020-10-25T12:12:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikeperetz](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mikeperetz](https://forum.wixstudio.com/u/mikeperetz)\
**Post date:** [October 25, 2020, 12:12pm UTC](https://forum.wixstudio.com/t/how-to-programmatically-add-members-to-groups/30563/1 "2020-10-25T12:12:29Z")

</div>

I would like to write some code that will assign members to groups, what’s the API I should use for this? Currently I doing some work in the back-end using:

```javascript
import wixUsersBackend from'wix-users-backend';

```

But I can’t find any APIs related to groups.  
Thank you.

---

<div class="post-metadata">

**Author:** ![sejal-kacharia](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sejal-kacharia/32/8337_2.png) [@sejal-kacharia](https://forum.wixstudio.com/u/sejal-kacharia)\
**Post date:** [February 22, 2023, 1:27am UTC](https://forum.wixstudio.com/t/how-to-programmatically-add-members-to-groups/30563/2 "2023-02-22T01:27:57Z")

</div>

Were you ever able to use the addMembersToGroup backend method to successfully add member to a group ? If so i would like your help on how to do that. TIA.

---

<div class="post-metadata">

**Author:** ![Alexander16](https://avatars.discourse-cdn.com/v4/letter/a/c5a1d2/32.png) [@Alexander16](https://forum.wixstudio.com/u/Alexander16)\
**Post date:** [January 20, 2026, 4:54pm UTC](https://forum.wixstudio.com/t/how-to-programmatically-add-members-to-groups/30563/3 "2026-01-20T16:54:20Z")

</div>

> **[Add Group Members | Velo](https://dev.wix.com/docs/velo/apis/wix-groups-backend/members/add-group-members)**
>
> Adds site members to a group. The addGroupMembers() function returns a Promise that resolves to the newly-added group member

Hope this helps.
