# Invite users(users not in asana) to project using API

**URL:** <https://forum.asana.com/t/invite-users-users-not-in-asana-to-project-using-api/115867>\
**Category:** API & Developers\
**Tags:** users, projects\
**Created:** [30 March 2021 10:37 UTC](https://forum.asana.com/t/invite-users-users-not-in-asana-to-project-using-api/115867 "2021-03-30T10:37:54Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hema\_Sri\_Sankarneni](https://luna1.co/8d76cd.png) [@Hema\_Sri\_Sankarneni](https://forum.asana.com/u/Hema_Sri_Sankarneni)\
**Post date:** [30 March 2021 10:37 UTC](https://forum.asana.com/t/invite-users-users-not-in-asana-to-project-using-api/115867/1 "2021-03-30T10:37:54Z")

</div>

I was able to create a project in asana through API. After I create a project I would like to invite(Share to) a user(external user who is not in asana org) through API. Could you please let me know how to do this through API ? I would like to invoke functionality i.e. invite with email in below image through API  
 ![image](https://us1.discourse-cdn.com/asana/original/3X/0/f/0fb14d8c1f053d2c8cce36a843c3d86b178556c4.png)

---

<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:** [30 March 2021 13:14 UTC](https://forum.asana.com/t/invite-users-users-not-in-asana-to-project-using-api/115867/2 "2021-03-30T13:14:11Z")

</div>

Hi @Hema_Sri_Sankarneni,

It’s not explained in the API documentation (cc: @Ross_Grambo hint hint 🙂 ) but the endpoint you want is `AddUser`:

> **[Add a user to a workspace or organization](https://developers.asana.com/reference/adduserforworkspace)**
>
> Add a user to a workspace or organization.The user can be referenced by their globally unique user ID or their email address. Returns the full user record for the invited user.

When you call it with an email address instead of a User ID, it will do the following:

- If the email address corresponds to a person who has an Asana account but is not part of your organization/workspace, it will add them as a guest user.
- If the email address does not belong to any Asana user account, it will send them an email invite as you are asking about.

---

<div class="post-metadata">

**Author:** ![Jason\_Parry](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/jason_parry/32/216843_2.png) [@Jason\_Parry](https://forum.asana.com/u/Jason_Parry)\
**Post date:** [3 January 2024 17:52 UTC](https://forum.asana.com/t/invite-users-users-not-in-asana-to-project-using-api/115867/3 "2024-01-03T17:52:11Z")

</div>

This doesn’t seem to be the case. I’m getting the error ‘Not a user in Organization’ unless the email address is already associated with an Asana account.

I’m trying to run a [Make.com](http://Make.com) automation triggered by a Stripe transaction and really need the ability to invite a guest to a project from an API, with the possibility that the email address used is not already associated with an Asana account.

Any workarounds, or can the API be updated to work the way Phil described?

---

<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:** [4 January 2024 00:04 UTC](https://forum.asana.com/t/invite-users-users-not-in-asana-to-project-using-api/115867/4 "2024-01-04T00:04:27Z")

</div>

> [@Jason\_Parry](#):
>
> This doesn’t seem to be the case. I’m getting the error ‘Not a user in Organization’ unless the email address is already associated with an Asana account.

Hmmm, I know I tested it and it worked when I mentioned it here.

Any chance your behavior is due to your Guest Invite settings? I.e.

 ![image](https://us1.discourse-cdn.com/asana/original/3X/1/6/165f99b4db408adb782822079341802844cbb139.png)

---

<div class="post-metadata">

**Author:** ![Jason\_Parry](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/jason_parry/32/216843_2.png) [@Jason\_Parry](https://forum.asana.com/u/Jason_Parry)\
**Post date:** [4 January 2024 00:22 UTC](https://forum.asana.com/t/invite-users-users-not-in-asana-to-project-using-api/115867/5 "2024-01-04T00:22:48Z")

</div>

I just checked and it’s currently set to “Admins, members, and guests” with no option to even change the setting (because I’m not on an enterprise plan).

My API call works when I test on a personal email that I’ve used Asana with, but it doesn’t work when I try a new email of mine that has not ever been used with an Asana account.

It seems like the addMembers API is for strictly adding a member and I can’t seem to find any way to _invite_ a new member to a project. This is pretty crucial for my workflow to be able to get clients up and running right away so if this can’t be resolved I probably won’t be able to use Asana. Which is a shame because I love Asana and everything else has been perfect for setting up my workflow.

---

<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:** [4 January 2024 04:50 UTC](https://forum.asana.com/t/invite-users-users-not-in-asana-to-project-using-api/115867/6 "2024-01-04T04:50:32Z")

</div>

Ah @Jason_Parry, sorry I missed this before - we’re talking about two separate API calls and functions.

I’m talking about [adding a user to a workspace or organization](https://developers.asana.com/reference/adduserforworkspace?_gl=1*sdveax*_ga*NTY0MTM0MzUyLjE2NzM0ODIyNzY.*_ga_J1KDXMCQTH*MTcwNDM0MzM3My45MTEuMS4xNzA0MzQzMzgzLjAuMC4w*_fplc*ZW1ZVU1EbCUyQk1GanBBVFElMkY4ek1UdjBVaHFOM2RxcE5TYTJkOUtaV2cxRTdtN2tkZFNSTzQ3QkZ4JTJGWDNmZ3AlMkZxcmxCYlk3SU1meTQ0dzZIM2h3QngzN05nWFNvMXJvcjNGbGF1azM0a0lJNENJaWlzZnJzRVV3QSUyQkolMkJLelNnJTNEJTNE); you’re talking about [adding them to a project.](https://developers.asana.com/reference/addmembersforproject)

Before you add a user to a project, they have to have a valid user record in that project’s organization or workspace. You can’t directly create a brand new user record as part of adding them to a project as you’re trying to do. You’ll need to first invite them to the workspace/org using the endpoint I was referring to. Once they accept that invitation, they’ll have a user record and can be added to a project.

---

<div class="post-metadata">

**Author:** ![Jason\_Parry](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/jason_parry/32/216843_2.png) [@Jason\_Parry](https://forum.asana.com/u/Jason_Parry)\
**Post date:** [5 January 2024 03:02 UTC](https://forum.asana.com/t/invite-users-users-not-in-asana-to-project-using-api/115867/7 "2024-01-05T03:02:05Z")

</div>

Yeah unfortunately that seems like the only way with the API, but that just won’t work with my workflow. I’m trying to create an automation that will create a new project and then add the client’s email to the project so they can start adding tasks right away. The API doesn’t offer a way (that I could tell) to listen for a user to join the organization and then add them to the appropriate project.

Really weird that Asana wouldn’t make the addMembers API function the same way as manually adding a user works.

Guess I’ll stick with Trello for now.

---

<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 18:54 UTC](https://forum.asana.com/t/invite-users-users-not-in-asana-to-project-using-api/115867/8 "2025-05-30T18:54:31Z")

</div>

Closed on 30 May 2025 18:54 UTC



---

<div class="post-metadata">

**Author:** ![Bastien\_Siebman](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/bastien_siebman/32/172354_2.png) [@Bastien\_Siebman](https://forum.asana.com/u/Bastien_Siebman)\
**Post date:** [8 October 2025 04:36 UTC](https://forum.asana.com/t/invite-users-users-not-in-asana-to-project-using-api/115867/9 "2025-10-08T04:36:34Z")

</div>

> [@Phil\_Seeman](#):
>
> Before you add a user to a project, they have to have a valid user record in that project’s organization or workspace. You can’t directly create a brand new user record as part of adding them to a project as you’re trying to do. You’ll need to first invite them to the workspace/org using the endpoint I was referring to. Once they accept that invitation, they’ll have a user record and can be added to a project.

@Phil_Seeman do you really have to wait for them to accept? You can preemptively invite them to the project?

---

<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:** [8 October 2025 14:20 UTC](https://forum.asana.com/t/invite-users-users-not-in-asana-to-project-using-api/115867/10 "2025-10-08T14:20:37Z")

</div>

> [@Bastien\_Siebman](#):
>
> You can preemptively invite them to the project?

Not sure if it was true when I wrote that post or has changed since, but you’re right, @Bastien_Siebman - you can now invite them to the workspace, which gets you a `gid` for them, then you can immediately add that `gid` to a project. They’ll of course still have to accept the invitation to the workspace in order to participate in the project, but you’re right that you don’t have to wait for them to accept the invite to add them to a project in that workspace.
