[PR #3802] [management] Skip adding existing users to domain account #23730

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

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/3802
Author: @bcmmbaga
Created: 5/8/2025
Status: 🔄 Open

Base: mainHead: handle-existing-domain-user


📝 Commits (5)

  • 7caf733 Skip adding user to domain account if already exists
  • ed939bf add unit test
  • 1a1e94c Check account existence without fully loading it
  • 9deff6f Merge branch 'main' into handle-existing-domain-user
  • 2b86463 fix merge

📊 Changes

2 files changed (+72 additions, -20 deletions)

View changed files

📝 management/server/account.go (+28 -20)
📝 management/server/account_test.go (+44 -0)

📄 Description

Describe your changes

Stack

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)

By submitting this pull request, you confirm that you have read and agree to the terms of the Contributor License Agreement.

Documentation

Select exactly one:

  • I added/updated documentation for this change
  • Documentation is not needed for this change (explain why)

Refactor domain user handling.

Docs PR URL (required if "docs added" is checked)

Paste the PR link from https://github.com/netbirdio/docs here:

https://github.com/netbirdio/docs/pull/__


🔄 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/3802 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 5/8/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `handle-existing-domain-user` --- ### 📝 Commits (5) - [`7caf733`](https://github.com/netbirdio/netbird/commit/7caf7332175ec37498effe8443c05bcc778b00e0) Skip adding user to domain account if already exists - [`ed939bf`](https://github.com/netbirdio/netbird/commit/ed939bf7f54c54be3fd39a6f15a2caefdebc06ab) add unit test - [`1a1e94c`](https://github.com/netbirdio/netbird/commit/1a1e94c8059edaf4814a2bfdf6e300fc4d87cd9a) Check account existence without fully loading it - [`9deff6f`](https://github.com/netbirdio/netbird/commit/9deff6f06bef02cb09d9548a74d2e4a48ee1c2d1) Merge branch 'main' into handle-existing-domain-user - [`2b86463`](https://github.com/netbirdio/netbird/commit/2b86463e96940dd1b6299b7dd3a34c8f30a81fec) fix merge ### 📊 Changes **2 files changed** (+72 additions, -20 deletions) <details> <summary>View changed files</summary> 📝 `management/server/account.go` (+28 -20) 📝 `management/server/account_test.go` (+44 -0) </details> ### 📄 Description ## Describe your changes ## Issue ticket number and link ## Stack <!-- branch-stack --> ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [x] It is a refactor - [ ] Created tests that fail without the change (if possible) > By submitting this pull request, you confirm that you have read and agree to the terms of the [Contributor License Agreement](https://github.com/netbirdio/netbird/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT.md). ## Documentation Select exactly one: - [ ] I added/updated documentation for this change - [x] Documentation is **not needed** for this change (explain why) > Refactor domain user handling. ### Docs PR URL (required if "docs added" is checked) Paste the PR link from https://github.com/netbirdio/docs here: https://github.com/netbirdio/docs/pull/__ --- <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:46 -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#23730