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

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

Hi @Hema_Sri_Sankarneni,

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

https://developers.asana.com/docs/add-a-user-to-a-workspace-or-organization

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.
2 Likes