[PR #303] [MERGED] User Endpoint #12440

Closed
opened 2026-08-05 02:05:55 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/303
Author: @shatoboar
Created: 4/27/2022
Status: Merged
Merged: 5/5/2022
Merged by: @braginini

Base: mainHead: users_tab


📝 Commits (10+)

  • a4baead endpoint for users
  • 33c76e4 user handler with get endpoint
  • a4dea35 Get all userData query needs to be batched and implemented
  • b96ad64 interface refactor for getting userfunction
  • 0d0fb90 passes user email and role to adminUI
  • 481e1fc fix(updateIDPMetaData)
  • b909dcf batched request for users
  • 61adffd local info on user merged with queried info from idpmanager
  • 16c3366 fix(golint) checking return values of json.Unmarshal
  • 97faa6a refactored batching logic to idp package instead of account.go

📊 Changes

11 files changed (+436 additions, -18 deletions)

View changed files

📝 go.mod (+1 -0)
📝 go.sum (+2 -0)
📝 management/server/account.go (+65 -9)
📝 management/server/account_test.go (+38 -2)
management/server/http/handler/users.go (+63 -0)
management/server/http/handler/users_test.go (+106 -0)
📝 management/server/http/server.go (+6 -0)
📝 management/server/idp/auth0.go (+136 -6)
📝 management/server/idp/idp.go (+8 -0)
📝 management/server/mock_server/account_mock.go (+9 -0)
📝 management/server/user.go (+2 -1)

📄 Description

Exposes endpoint under "/users/" that returns information on users.
Calls idp manager to get information not stored locally (email, name), which in the case of the managed version is auth0.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/303 **Author:** [@shatoboar](https://github.com/shatoboar) **Created:** 4/27/2022 **Status:** ✅ Merged **Merged:** 5/5/2022 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `users_tab` --- ### 📝 Commits (10+) - [`a4baead`](https://github.com/netbirdio/netbird/commit/a4baeade64bee0cd815f42a17df596b1f55e3fc1) endpoint for users - [`33c76e4`](https://github.com/netbirdio/netbird/commit/33c76e479446633118550ef2ad8d32147a67dd41) user handler with get endpoint - [`a4dea35`](https://github.com/netbirdio/netbird/commit/a4dea3524b43f259a9f8a561b86fb450cb90e267) Get all userData query needs to be batched and implemented - [`b96ad64`](https://github.com/netbirdio/netbird/commit/b96ad64dd48859462920bd1c325783af13f12ee7) interface refactor for getting userfunction - [`0d0fb90`](https://github.com/netbirdio/netbird/commit/0d0fb90fa372e7bb9b01ffab12b2d8c318181557) passes user email and role to adminUI - [`481e1fc`](https://github.com/netbirdio/netbird/commit/481e1fc3bfdf9a44fe94ad36f20e614d289b84e1) fix(updateIDPMetaData) - [`b909dcf`](https://github.com/netbirdio/netbird/commit/b909dcf30ebbd4093c182dd75f9403d35053d2c9) batched request for users - [`61adffd`](https://github.com/netbirdio/netbird/commit/61adffdc342672c9ecc72635ac176414c3507492) local info on user merged with queried info from idpmanager - [`16c3366`](https://github.com/netbirdio/netbird/commit/16c3366f79c3dacb280b6096f89cd9d4c5e09f5b) fix(golint) checking return values of json.Unmarshal - [`97faa6a`](https://github.com/netbirdio/netbird/commit/97faa6adbc3b5b92e6876030fef5067f7fa14e1f) refactored batching logic to idp package instead of account.go ### 📊 Changes **11 files changed** (+436 additions, -18 deletions) <details> <summary>View changed files</summary> 📝 `go.mod` (+1 -0) 📝 `go.sum` (+2 -0) 📝 `management/server/account.go` (+65 -9) 📝 `management/server/account_test.go` (+38 -2) ➕ `management/server/http/handler/users.go` (+63 -0) ➕ `management/server/http/handler/users_test.go` (+106 -0) 📝 `management/server/http/server.go` (+6 -0) 📝 `management/server/idp/auth0.go` (+136 -6) 📝 `management/server/idp/idp.go` (+8 -0) 📝 `management/server/mock_server/account_mock.go` (+9 -0) 📝 `management/server/user.go` (+2 -1) </details> ### 📄 Description Exposes endpoint under "/users/" that returns information on users. Calls idp manager to get information not stored locally (email, name), which in the case of the managed version is auth0. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 02:05:55 -04:00
saavagebueno changed title from [PR #303] User Endpoint to [PR #303] [MERGED] User Endpoint 2026-08-05 02:08:18 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#12440