# API v2 to collect users and groups at root level

**URL:** <https://forum.pydio.com/t/api-v2-to-collect-users-and-groups-at-root-level/2826>\
**Category:** Development\
**Tags:** api\
**Created:** [October 9, 2019, 7:29pm UTC](https://forum.pydio.com/t/api-v2-to-collect-users-and-groups-at-root-level/2826 "2019-10-09T19:29:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![zolointo](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/zolointo/32/1017_2.png) [@zolointo](https://forum.pydio.com/u/zolointo)\
**Post date:** [October 9, 2019, 7:29pm UTC](https://forum.pydio.com/t/api-v2-to-collect-users-and-groups-at-root-level/2826/1 "2019-10-09T19:29:10Z")

</div>

**Short**  
How do I collect a list of group and user ids at the root level of my Groups and Users tree using API v2?

**Setup**  
We have a pydio 8 server at  
thiswebsite . com

My admins have given me a sub-site at  
thiswebsite . com/mysite

I am able to use the v2 API for just about everything, so:  
thiswebsite . com/mysite/api/v2/people/myid

Will properly generate details for my own user account.

Additionally this url:  
thiswebsite . com/mysite/api/v2/people/my\_group

Will show me the details for my\_group as well as all of the users and rights of those users

**Problem**  
I cannot figure out how to make the API query the root of my Users and Group structure. Using either of these URLs:  
thiswebsite . com/mysite/api/v2/people/  
thiswebsite . com/mysite/api/v2/people

Generates a response of:  
_Could not find workspace with id/alias v2_

**Goal**  
I want to use the API to

1. Starting at the root of Users and Groups, generate a list of all users and the Groups they are in
2. Generate a list of all workspaces those users have access to, plus the ACL they have for that group

Any direction on how to target the root of Users and Groups?
