auto_groups key returning IDs instead of names #522

Open
opened 2025-11-20 05:12:57 -05:00 by saavagebueno · 0 comments
Owner

Originally created by @kent-hydra on GitHub (Nov 28, 2023).

Describe the problem
When using the API to view peer data the auto_groups list is returned as a list of IDs.

To Reproduce
Steps to reproduce the behavior:

  1. Assign auto groups to a user
  2. Pull JSON data via API: https://api.netbird.io/api/users
  3. Notice auto_groups list are IDs without the names

Expected behavior
Based on the return JSON when inviting a user, which returns the human readable names, i would expect this same behavior when making a GET call to the same endpoint.

NetBird status -d output:
N/A

Screenshots
GET
image
POST
image

Additional context
Having the human readable name will simplify idempotent logic. With the list of IDs being returned it would require an additional call to the groups endpoint, and then logic to filter through that list to determine which groups the user is in.

Originally created by @kent-hydra on GitHub (Nov 28, 2023). **Describe the problem** When using the API to view peer data the auto_groups list is returned as a list of IDs. **To Reproduce** Steps to reproduce the behavior: 1. Assign auto groups to a user 2. Pull JSON data via API: https://api.netbird.io/api/users 3. Notice auto_groups list are IDs without the names **Expected behavior** Based on the return JSON when inviting a user, which returns the human readable names, i would expect this same behavior when making a GET call to the same endpoint. **NetBird status -d output:** N/A **Screenshots** GET ![image](https://github.com/netbirdio/netbird/assets/120897091/1abb54e2-e0a3-47b3-9bdf-e4bcd6cde870) POST ![image](https://github.com/netbirdio/netbird/assets/120897091/6bd1e8ad-cca4-48ec-8785-7b96db7d4f8c) **Additional context** Having the human readable name will simplify idempotent logic. With the list of IDs being returned it would require an additional call to the groups endpoint, and then logic to filter through that list to determine which groups the user is in.
saavagebueno added the enhancementmanagement-serviceinconsistency labels 2025-11-20 05:12:58 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#522