# Adding members to a project

**URL:** <https://forum.asana.com/t/adding-members-to-a-project/37190>\
**Category:** API & Developers\
**Created:** [11 December 2018 08:05 UTC](https://forum.asana.com/t/adding-members-to-a-project/37190 "2018-12-11T08:05:38Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aviv\_Farhi](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/aviv_farhi/32/26198_2.png) [@Aviv\_Farhi](https://forum.asana.com/u/Aviv_Farhi)\
**Post date:** [11 December 2018 08:05 UTC](https://forum.asana.com/t/adding-members-to-a-project/37190/1 "2018-12-11T08:05:38Z")

</div>

Hey all,

I’m looking for a way to add users to an Asana project using the API.  
The users are not part of any previous team and are given at random.

Thanks for the help,

Aviv

---

<div class="post-metadata">

**Author:** ![Jeff\_Schneider](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/jeff_schneider/32/146_2.png) [@Jeff\_Schneider](https://forum.asana.com/u/Jeff_Schneider)\
**Post date:** [13 December 2018 20:09 UTC](https://forum.asana.com/t/adding-members-to-a-project/37190/2 "2018-12-13T20:09:41Z")

</div>

Hey @Aviv_Farhi,

Have you tired:

`POST /projects/{project_gid}/addMembers`

This request adds a specified list of users as members to the project. Here are [the docs](https://asana.com/developers/api-reference/projects#members).

---

<div class="post-metadata">

**Author:** ![Aviv\_Farhi](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/aviv_farhi/32/26198_2.png) [@Aviv\_Farhi](https://forum.asana.com/u/Aviv_Farhi)\
**Post date:** [13 December 2018 20:23 UTC](https://forum.asana.com/t/adding-members-to-a-project/37190/4 "2018-12-13T20:23:44Z")

</div>

Hey, thanks for the reply.  
I haven’t tried that but I doubt it would work.  
You see, I need to add a user that is not currently a member.  
I intend to add the new user using **email** since I have no user ID.

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [13 December 2018 20:47 UTC](https://forum.asana.com/t/adding-members-to-a-project/37190/5 "2018-12-13T20:47:23Z")

</div>

The Asana API doesn’t provide the ability to create a new Asana user, so unfortunately you won’t be able to do what you’ve described.

> [@Creating a new user account with the API](https://forum.asana.com/t/creating-a-new-user-account-with-the-api/20459):
>
> Is it possible to create a new user account using the Asana API? I couldn’t find anything aside from get requests in the documentation.

---

<div class="post-metadata">

**Author:** ![Jeff\_Schneider](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/jeff_schneider/32/146_2.png) [@Jeff\_Schneider](https://forum.asana.com/u/Jeff_Schneider)\
**Post date:** [14 December 2018 20:06 UTC](https://forum.asana.com/t/adding-members-to-a-project/37190/6 "2018-12-14T20:06:37Z")

</div>

Hey @Aviv_Farhi,

You can try using our `addUser` endpoint to invite new users to a domain:

`POST /workspaces/{workspace_gid}/addUser`

Here are the [docs for user management](https://asana.com/developers/api-reference/workspaces#user-mgmt).

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [14 December 2018 20:15 UTC](https://forum.asana.com/t/adding-members-to-a-project/37190/7 "2018-12-14T20:15:57Z")

</div>

@Jeff_Schneider - the user whose email address you send to addUser has to have an Asana account (i.e. be a known Asana user), correct? Or can it be a new unknown email address and that endpoint will create a user account?

---

<div class="post-metadata">

**Author:** ![Jeff\_Schneider](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/jeff_schneider/32/146_2.png) [@Jeff\_Schneider](https://forum.asana.com/u/Jeff_Schneider)\
**Post date:** [14 December 2018 22:59 UTC](https://forum.asana.com/t/adding-members-to-a-project/37190/8 "2018-12-14T22:59:36Z")

</div>

Hey @Phil_Seeman, good question (and probably something we should make more clear on our docs). You can invite people who have a random email. Once they accept the invite, they will join the Asana organization as a guest.

---

<div class="post-metadata">

**Author:** ![Phil\_Seeman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/phil_seeman/32/81525_2.png) [@Phil\_Seeman](https://forum.asana.com/u/Phil_Seeman)\
**Post date:** [14 December 2018 23:14 UTC](https://forum.asana.com/t/adding-members-to-a-project/37190/9 "2018-12-14T23:14:32Z")

</div>

Oh, that’s very cool!

---

<div class="post-metadata">

**Author:** ![goelad](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/goelad/32/74708_2.png) [@goelad](https://forum.asana.com/u/goelad)\
**Post date:** [26 December 2018 06:31 UTC](https://forum.asana.com/t/adding-members-to-a-project/37190/10 "2018-12-26T06:31:53Z")

</div>

Hi @Jeff_Schneider I tried using this method, but I received a weird response:

```
{"errors":[{"message":"No matching route for request","help":"For more information on API status codes and how to handle them, read the docs on errors: https://asana.com/developers/documentation/getting-started/errors"}]} 

```

I tried using the following methods:

`curl -H -XPOST -H "content-type: application/json" -H "Authorization: Bearer 0/xxx" https://app.asana.com/api/1.0/workspaces/123/addUser -d '{"data": {"user": "elad@elad.com" }}'`

Also tried:

`curl -X POST -H "content-type: application/json" -H "Authorization: Bearer 0/xxx" https://app.asana.com/api/1.0/workspaces/123/addUser?user=elad@elad.net`

And:  
`url -H "Authorization: Bearer 0/xxx" https://app.asana.com/api/1.0//workspaces/123/addUser -d '{"workspace_gid": "123", "user": "elad@elad.net" }'`

And:

`url -H "Authorization: Bearer 0/xxx" https://app.asana.com/api/1.0//workspaces/123/addUser -d '{"data":{"workspace_gid": "123", "user": "elad@elad.net" }}'`

But none worked, each return a different error.

---

<div class="post-metadata">

**Author:** ![kchen](https://luna1.co/8d76cd.png) [@kchen](https://forum.asana.com/u/kchen)\
**Post date:** [26 December 2018 17:09 UTC](https://forum.asana.com/t/adding-members-to-a-project/37190/11 "2018-12-26T17:09:04Z")

</div>

try passing the data as form urlencoded string like below and that should work!  
curl -X POST [https://app.asana.com/api/1.0/workspaces/123/addUser](https://app.asana.com/api/1.0/workspaces/123/addUser) -H ‘Authorization: Bearer 0/xxxxxxx’ -d ‘user=elad@elad.net’,

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 19:08 UTC](https://forum.asana.com/t/adding-members-to-a-project/37190/12 "2025-05-30T19:08:14Z")

</div>

Closed on 30 May 2025 19:08 UTC


