[PR #3655] [CLOSED] [management] get current user endpoint #23289

Open
opened 2026-08-05 06:07:02 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3655
Author: @pnmcosta
Created: 4/10/2025
Status: Closed

Base: mainHead: feature/get-current-user


📝 Commits (10+)

  • 5f51932 use permission check with modules
  • e1d2ba1 extract granular permissions
  • 2845d3d remove use of permissions mock
  • 49a6a3a Merge branch 'main' into refactor/permissions-modules
  • 2bb9f7a fix tests
  • 41bfc3c handle service user read access on user role
  • 95dc0ce remove skip from role module validation
  • cc362e0 update permissions mock
  • 41ad8f1 fix regular user view block
  • dfd63b1 fix roles validation

📊 Changes

6 files changed (+362 additions, -0 deletions)

View changed files

📝 management/server/account/manager.go (+1 -0)
📝 management/server/http/handlers/users/users_handler.go (+24 -0)
📝 management/server/http/handlers/users/users_handler_test.go (+129 -0)
📝 management/server/mock_server/account_mock.go (+8 -0)
📝 management/server/user.go (+27 -0)
📝 management/server/user_test.go (+173 -0)

📄 Description

Describe your changes

Dedicated endpoint to get the current user info from the authentication

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 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/3655 **Author:** [@pnmcosta](https://github.com/pnmcosta) **Created:** 4/10/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feature/get-current-user` --- ### 📝 Commits (10+) - [`5f51932`](https://github.com/netbirdio/netbird/commit/5f5193251d58bf5c97026c5880a573f3dca261f7) use permission check with modules - [`e1d2ba1`](https://github.com/netbirdio/netbird/commit/e1d2ba1c8e02c058243222a6f69512438dc4432b) extract granular permissions - [`2845d3d`](https://github.com/netbirdio/netbird/commit/2845d3d79eb98390a824513912e1986bf0305d91) remove use of permissions mock - [`49a6a3a`](https://github.com/netbirdio/netbird/commit/49a6a3a3e6d2f9b2ba3c094e97c615415538ef78) Merge branch 'main' into refactor/permissions-modules - [`2bb9f7a`](https://github.com/netbirdio/netbird/commit/2bb9f7a94da9769c950743e2be263aa0ed40a2f3) fix tests - [`41bfc3c`](https://github.com/netbirdio/netbird/commit/41bfc3c3204a0e4af2d87c4b247db91f10f2661f) handle service user read access on user role - [`95dc0ce`](https://github.com/netbirdio/netbird/commit/95dc0ce2be29b879bcc9b3b8d868e54f75a679ba) remove skip from role module validation - [`cc362e0`](https://github.com/netbirdio/netbird/commit/cc362e0527859d6afd022d0cb55a794601b96c9e) update permissions mock - [`41ad8f1`](https://github.com/netbirdio/netbird/commit/41ad8f1d8a948bd6839da8fd4220024a047642b9) fix regular user view block - [`dfd63b1`](https://github.com/netbirdio/netbird/commit/dfd63b1c9dbe2e9f6ad1321641c2c7c1c3648795) fix roles validation ### 📊 Changes **6 files changed** (+362 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account/manager.go` (+1 -0) 📝 `management/server/http/handlers/users/users_handler.go` (+24 -0) 📝 `management/server/http/handlers/users/users_handler_test.go` (+129 -0) 📝 `management/server/mock_server/account_mock.go` (+8 -0) 📝 `management/server/user.go` (+27 -0) 📝 `management/server/user_test.go` (+173 -0) </details> ### 📄 Description ## Describe your changes Dedicated endpoint to get the current user info from the authentication ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <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 06:07:02 -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#23289