This object determines if a user is a member of a team.
TeamMembershipCompact
Property | Type | Description |
---|---|---|
gid | string | Globally unique identifier of the resource, as a string. |
resource_type | string | The base type of this resource. |
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. |
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. |
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. |
is_admin | boolean | Describes if the user is a team admin. |
Example JSON for TeamMembershipCompact
:
{
"gid": "12345",
"resource_type": "team_membership",
"user": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"team": {
"gid": "12345",
"resource_type": "team",
"name": "Marketing"
},
"is_guest": false,
"is_limited_access": false,
"is_admin": false
}
TeamMembership
Property | Type | Description |
---|---|---|
gid | string | Globally unique identifier of the resource, as a string. |
resource_type | string | The base type of this resource. |
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. |
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. |
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. |
is_admin | boolean | Describes if the user is a team admin. |
Example JSON for TeamMembership
:
{
"gid": "12345",
"resource_type": "team_membership",
"user": {
"gid": "12345",
"resource_type": "user",
"name": "Greg Sanchez"
},
"team": {
"gid": "12345",
"resource_type": "team",
"name": "Marketing"
},
"is_guest": false,
"is_limited_access": false,
"is_admin": false
}