Teams
Add a user to a team
The user making this call must be a member of the team in order to add others. The user being added must exist in the same organization as the team.
Returns the complete team membership record for the newly added user.
post/teams/{team_gid}/addUser
Request
- Base URL: https://app.asana.com/api/1.0
- URL: https://app.asana.com/api/1.0/teams/{team_gid}/addUser
- Auth: one of:
- HTTP bearer
- OAuth 2 (authorization code, authorization URL https://app.asana.com/-/oauth_authorize, token URL https://app.asana.com/-/oauth_token)
Query parameters
opt_fieldsstring[]
This endpoint returns a resource which excludes some properties by default. To include those optional properties, set this query parameter to a comma-separated list of the properties you wish to include. Properties can include nested fields. To learn more, see the input/output options guide.
Request body
Example request
{
"data": {
"user": "12345"
}
}Response
Successfully added user to the team.
Example response
{
"data": {
"gid": "12345",
"resource_type": "team_membership",
"user": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"team": {
"gid": "12345",
"resource_type": "team",
"name": "Marketing"
}
}
}Changes
No recorded changes to this operation across all 2 revisions of this API.