Add a user to a team
POST
/teams/{team_gid}/addUser
Teams
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://app.asana.com/api/1.0/teams//addUser' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"user": "12345"
}
}'
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
team_gid
string
required
Body Params application/json
Responses
Modified at 2022-09-13 02:00:31