# Having trouble getting teams for user

**URL:** <https://forum.asana.com/t/having-trouble-getting-teams-for-user/107841>\
**Category:** API & Developers\
**Created:** [26 January 2021 20:04 UTC](https://forum.asana.com/t/having-trouble-getting-teams-for-user/107841 "2021-01-26T20:04:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nicholas\_Wackowski](https://luna1.co/8d76cd.png) [@Nicholas\_Wackowski](https://forum.asana.com/u/Nicholas_Wackowski)\
**Post date:** [26 January 2021 20:04 UTC](https://forum.asana.com/t/having-trouble-getting-teams-for-user/107841/1 "2021-01-26T20:04:01Z")

</div>

Hello, I need to find the team ID for one of my teams, so I can use Python to create projects in that team.  
**What is the easiest way to find a team ID? Is there anywhere in the teams/dashboard view I can use to find them?**

Right now I’m just trying to find all the teams which exist for a user (myself). I’m using the following Python code, as described in the documentation:

my\_api\_key = ‘[Private API key; not going to post on a public forum]’  
client = asana.get\_client(my\_api\_key)  
result = client.teams.get\_teams\_for\_user(‘me’, {‘param’: ‘value’, ‘param’: ‘value’},  
opt\_pretty=True)  
print(result)

…However, when looking at ‘result’, all I get is an object with ‘gi\_code’ and ‘gi\_frame’ attributes. ‘gi\_frame’ contains a stack with only one element (when I know there should be dozens of team IDs) and a bunch of variables which don’t seem relevant.

**How am I supposed to parse this data to learn the team ids?**

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/system/32/276370_2.png) [@system](https://forum.asana.com/u/system)\
**Post date:** [30 May 2025 19:06 UTC](https://forum.asana.com/t/having-trouble-getting-teams-for-user/107841/2 "2025-05-30T19:06:06Z")

</div>

Closed on 30 May 2025 19:06 UTC


