# Unable to create group owner with API

**URL:** <https://meta.discourse.org/t/unable-to-create-group-owner-with-api/272631>\
**Category:** Migration\
**Tags:** rest-api\
**Created:** [July 24, 2023, 12:19pm UTC](https://meta.discourse.org/t/unable-to-create-group-owner-with-api/272631 "2023-07-24T12:19:54Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)\
**Post date:** [July 24, 2023, 12:43pm UTC](https://meta.discourse.org/t/unable-to-create-group-owner-with-api/272631/3 "2023-07-24T12:43:39Z")

</div>

Hi FLucas and welcome to [meta.discourse.org](http://meta.discourse.org/) :blob_wave:

> [@FLucas](#):
>
> Group is created with name and bio\_raw but no username1 and owner\_username1

By reverse-engineering the API, I understood that the usernames must be separated with a comma without space. If you’re trying to add multiple users at once, it may be your issue.

I tested with the following payload:

```json
{
    "group": {
        "name": "test",
        "bio_raw": "test",
        "full_name": "test",
        "usernames": "Canapin,adan",
        "owner_usernames": "cristopher_klocko,Canapin"
    }
}

```

As a POST request to `admin/groups.json`, and it worked.

---

_[View the full topic](https://meta.discourse.org/t/unable-to-create-group-owner-with-api/272631)._
