This object determines if a user is a member of a team.
TeamMembershipCompact
A Compact
object reflects the default fields returned after a successful API request. See input/output options to include more fields in the response.
Property | Type | Description |
---|---|---|
gid | string | Globally unique identifier of the resource, as a string. |
resource_type | string | The base type of this resource. |
is_admin | boolean | Describes if the user is a team admin. |
is_guest | boolean | Describes if the user is a guest in the team. |
is_limited_access | boolean | Describes if the user has limited access to the team. |
team | object | A team is used to group related projects and people together within an organization. Each project in an organization is associated with a team. |
team .gid | string | Globally unique identifier of the resource, as a string. |
team .resource_type | string | The base type of this resource. |
team .name | string | The name of the team. |
user | object | A user object represents an account in Asana that can be given access to various workspaces, projects, and tasks. |
user .gid | string | Globally unique identifier of the resource, as a string. |
user .resource_type | string | The base type of this resource. |
user .name | string | Read-only except when same user as requester. The user’s name. |
{
"gid": "12345",
"resource_type": "team_membership",
"is_admin": false,
"is_guest": false,
"is_limited_access": false,
"team": {
"gid": "12345",
"resource_type": "team",
"name": "Marketing"
},
"user": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
}
}
TeamMembership
This object represents a user's connection to a team.
Property | Type | Description |
---|---|---|
gid | string | Globally unique identifier of the resource, as a string. |
resource_type | string | The base type of this resource. |
is_admin | boolean | Describes if the user is a team admin. |
is_guest | boolean | Describes if the user is a guest in the team. |
is_limited_access | boolean | Describes if the user has limited access to the team. |
team | object | A team is used to group related projects and people together within an organization. Each project in an organization is associated with a team. |
team .gid | string | Globally unique identifier of the resource, as a string. |
team .resource_type | string | The base type of this resource. |
team .name | string | The name of the team. |
user | object | A user object represents an account in Asana that can be given access to various workspaces, projects, and tasks. |
user .gid | string | Globally unique identifier of the resource, as a string. |
user .resource_type | string | The base type of this resource. |
user .name | string | Read-only except when same user as requester. The user’s name. |
{
"gid": "12345",
"resource_type": "team_membership",
"is_admin": false,
"is_guest": false,
"is_limited_access": false,
"team": {
"gid": "12345",
"resource_type": "team",
"name": "Marketing"
},
"user": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
}
}