# Get Teams using Java SDK

**URL:** <https://forum.asana.com/t/get-teams-using-java-sdk/14995>\
**Category:** API & Developers\
**Tags:** teams\
**Created:** [29 January 2018 16:29 UTC](https://forum.asana.com/t/get-teams-using-java-sdk/14995 "2018-01-29T16:29:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![moranplatform](https://luna1.co/8d76cd.png) [@moranplatform](https://forum.asana.com/u/moranplatform)\
**Post date:** [29 January 2018 16:29 UTC](https://forum.asana.com/t/get-teams-using-java-sdk/14995/1 "2018-01-29T16:29:58Z")

</div>

Hi,

I am using the Java SDK ([GitHub - Asana/java-asana: Official Java client library for the Asana API v1](https://github.com/Asana/java-asana/)) to start pulling information from our Asana data.

Basically, in our Asana, we have multiple Teams and I want to get that information through the API. I am using the following code to get the teams but the result is always 0. Not sure if there is another way to get the teams?

Iterable team = client.teams.findByOrganization(workspace.name);

Thanks,

JP

---

<div class="post-metadata">

**Author:** ![Diakoptis](https://sea2.discourse-cdn.com/asana/user_avatar/forum.asana.com/diakoptis/32/22726_2.png) [@Diakoptis](https://forum.asana.com/u/Diakoptis)\
**Post date:** [29 January 2018 16:41 UTC](https://forum.asana.com/t/get-teams-using-java-sdk/14995/2 "2018-01-29T16:41:38Z")

</div>

Maybe you need to use workspace.id

---

<div class="post-metadata">

**Author:** ![moranplatform](https://luna1.co/8d76cd.png) [@moranplatform](https://forum.asana.com/u/moranplatform)\
**Post date:** [29 January 2018 18:30 UTC](https://forum.asana.com/t/get-teams-using-java-sdk/14995/3 "2018-01-29T18:30:18Z")

</div>

That worked! Thanks!

---

<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:09 UTC](https://forum.asana.com/t/get-teams-using-java-sdk/14995/4 "2025-05-30T19:09:02Z")

</div>

Closed on 30 May 2025 19:09 UTC


