Add a user to a workspace or organization
POST
/workspaces/{workspace_gid}/addUser
Workspaces
The user can be referenced by their globally unique user ID or their email address. Returns the full user record for the invited user.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.asana.com/api/1.0/workspaces//addUser' \
--header 'Content-Type: application/json' \
--data-raw ''
Response Response Example
200 - Example 1
{
"data": {
"gid": "12345",
"resource_type": "task",
"name": "Greg Sanchez",
"email": "gsanchez@example.com",
"photo": {
"image_1024x1024": "https://...",
"image_128x128": "https://...",
"image_21x21": "https://...",
"image_27x27": "https://...",
"image_36x36": "https://...",
"image_60x60": "https://..."
},
"workspaces": [
{
"gid": "12345",
"resource_type": "task",
"name": "My Company Workspace"
}
]
}
}
Request
Path Params
workspace_gid
string
required
Body Params application/json
Responses
Modified at 2022-09-13 02:00:32