post https://app.asana.com/api/1.0/workspaces//addUser
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.
Responses
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.
xxxxxxxxxx
curl --request POST \
--url https://app.asana.com/api/1.0/workspaces/workspace_gid/addUser \
--header 'accept: application/json' \
--header 'content-type: application/json'
xxxxxxxxxx
{
"data": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez",
"email": "gsanchez@example.com",
"photo": {
"image_21x21": "https://...",
"image_27x27": "https://...",
"image_36x36": "https://...",
"image_60x60": "https://...",
"image_128x128": "https://...",
"image_1024x1024": "https://..."
}
}
}