Míla Votradovec
09/15/2025, 7:38 PM/groups endpoint returns an empty array while I can see all the groups I previously created in the UI.
Am I doing anything wrong or is it maybe a bug?Ask Inkeep
09/15/2025, 7:38 PMpermit support automation2
09/15/2025, 7:38 PMAsk Inkeep
09/15/2025, 7:38 PM/v2/schema/{project_id}/{env_id}/groups (1) . Make sure you're:
1. *Using the correct API key type*: There are 3 types of API Keys - Organization, Project, and Environment API Keys (2) . For the Groups API, you need at least a Project or Environment level key.
2. *Including the project and environment IDs in your request*: The endpoint requires both {project_id} and {env_id} in the path (1) .
3. *Specifying the correct tenant*: Groups are tenant-specific. When creating a group, you need to specify the group_tenant parameter .
Example API call to list groups:
curl '<https://api.permit.io/v2/schema/{project_id}/{env_id}/groups>' \
-H 'authorization: Bearer API_SECRET_KEY'
Since you're seeing the groups in the UI but not via the API, this could be a bug. To help our engineers investigate:
1. Which Workspace / Project / Env are you using?
2. What exact API calls are you performing (as SDK code or CURL) ?
3. Which PDP version are you running?
4. Can you share any relevant logs from your PDP?Ask Inkeep
09/15/2025, 7:38 PMMíla Votradovec
09/15/2025, 7:44 PMorg_id: 06c3bb2b-7585-4385-8046-6aabe04bc8a3
project_id: 9ffe989d-f025-4c40-81ba-7d9e5b8d15f9
env_id: 98f62543-8a05-4304-a9ec-de83ece8a811
2. curl <https://api.eu.permit.io/v2/schema/default/production/groups> with authorization header
3. latest
4. Haven't found anyMíla Votradovec
09/15/2025, 7:53 PMMíla Votradovec
09/15/2025, 7:57 PMAlon Boshi
09/15/2025, 8:32 PMOr Weis
09/15/2025, 9:24 PMShuvy Ankor
09/16/2025, 7:29 AMMíla Votradovec
09/16/2025, 8:03 AMShuvy Ankor
09/16/2025, 5:03 PMMíla Votradovec
09/17/2025, 7:50 AMShuvy Ankor
09/17/2025, 7:54 AMMíla Votradovec
09/17/2025, 7:54 AM/groups and I still get an empty arrayShuvy Ankor
09/17/2025, 7:58 AMMíla Votradovec
09/17/2025, 8:03 AMMíla Votradovec
09/17/2025, 8:14 AMShuvy Ankor
09/17/2025, 8:23 AMOr Weis
09/17/2025, 8:29 AMMíla Votradovec
09/17/2025, 8:52 AM