# \[Postman API\] Fetching owned and "shared" environment with the API

**URL:** <https://community.postman.com/t/postman-api-fetching-owned-and-shared-environment-with-the-api/1597>\
**Category:** Help Hub\
**Created:** [May 11, 2018, 2:22pm UTC](https://community.postman.com/t/postman-api-fetching-owned-and-shared-environment-with-the-api/1597 "2018-05-11T14:22:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aisame2](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@aisame2](https://community.postman.com/u/aisame2)\
**Post date:** [May 11, 2018, 2:22pm UTC](https://community.postman.com/t/postman-api-fetching-owned-and-shared-environment-with-the-api/1597/1 "2018-05-11T14:22:33Z")

</div>

Hello,

We are using postman API to fetch collections and environments and executes them in a Jenkins Pipeline.  
When we did the migration to the workspaces version of Postman, we were excited to see that now there is a feature to share environments between different accounts.  
Thing is, when we call the API to fetch environments, only those who are owned with the API caller are returned.  
Is there any workarround to call the API to fetch the owner environment AND the environment that was shared from other users?

Regards.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 30, 2025, 2:52pm UTC](https://community.postman.com/t/postman-api-fetching-owned-and-shared-environment-with-the-api/1597/2 "2025-04-30T14:52:58Z")

</div>

Closed on April 30, 2025, 2:52pm UTC


