Get teams for user
The Asana Get Teams for User tool allows you to retrieve the list of teams a specific user belongs to within an organization. It provides team names and IDs, facilitating user access verification and team management.
Features
- Fetches all teams associated with a specified user in an organization.
- Supports identification of users via user ID, email, or the keyword 'me' for current user.
- Returns detailed team information including names and unique IDs.
- Includes pagination support for efficient data retrieval with customizable limits and offsets.
- Allows inclusion of optional fields for more tailored data output.
Benefits
- Simplifies management of user access across multiple teams in Asana.
- Enhances team collaboration by easily identifying user memberships.
- Improves security by verifying user access at the team level.
- Saves time with automated retrieval of team data instead of manual lookup.
- Supports scalable workflows with pagination and customizable data requests.
Description
Get teams user belongs to. Returns team names and IDs. Use to check user team access or find teams for specific user. Requires organization ID. "me" supported for current user.
Parameters
5 parameters
| Name | Type | Description |
|---|---|---|
| user_gidrequired | string | A string identifying a user. This can be 'me', an email, or the gid of a user. |
| organizationrequired | string | Globally unique identifier of the workspace or organization. |
| limit | number | Number of projects to return per page (1-100). |
| offset | string | Pagination offset token. |
| opt_fields | string | Comma-separated list of optional fields to include. |