[GH-ISSUE #3545] single account mode doesn't work properly #7480

Open
opened 2026-08-05 01:13:10 -04:00 by saavagebueno · 2 comments
Owner

Originally created by @sisumara on GitHub (Mar 19, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/3545

Describe the problem

I've made a fresh deployment of self-hosted Netbirdf with Authentik and with some reasons it creates new account for new user with owner role and completely new environment.

To Reproduce

Follow instructions for Advanced install with reverse proxy and Authentik as IDP.

Expected behavior

I have similar setup with Zitadel IDP which I've deployed about a year ago and it behaves as expected - each new user creates under the same netbird account (environment), so they can share network policies, peers etc..

Are you using NetBird Cloud?

self-hosted Netbirdf with Authentik

NetBird version

38.2

Debug output

Mgmt log confirms that I have enabled single account mode

2025-03-18T22:07:24Z INFO [context: SYSTEM] management/server/account.go:288: single account mode enabled, accounts number 1
2025-03-18T22:07:25Z INFO [context: SYSTEM] management/cmd/management.go:318: running gRPC backward compatibility server: [::]:33073
2025-03-18T22:07:25Z INFO [context: SYSTEM] management/cmd/management.go:350: management server version 0.38.2
2025-03-18T22:07:25Z INFO [context: SYSTEM] management/cmd/management.go:351: running HTTP server and gRPC server on the same port: [::]:443
2025-03-18T22:07:27Z INFO [context: SYSTEM] management/server/account.go:551: 1 entries received from IdP management
2025-03-18T22:07:27Z INFO [context: SYSTEM] management/server/account.go:582: warmed up IDP cache with 1 entries for 1 accounts

screenshot of the new user account which is created with the same IDP.

Image

Additional context

Add any other context about the problem here.

Have you tried these troubleshooting steps?

  • [ * ] Checked for newer NetBird versions
  • [ * ] Searched for similar issues on GitHub (including closed ones)
  • [ * ] Restarted the NetBird client
  • [ * ] Disabled other VPN software
  • [ * ] Checked firewall settings
Originally created by @sisumara on GitHub (Mar 19, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/3545 **Describe the problem** I've made a fresh deployment of self-hosted Netbirdf with Authentik and with some reasons it creates new account for new user with owner role and completely new environment. **To Reproduce** Follow instructions for Advanced install with reverse proxy and Authentik as IDP. **Expected behavior** I have similar setup with Zitadel IDP which I've deployed about a year ago and it behaves as expected - each new user creates under the same netbird account (environment), so they can share network policies, peers etc.. **Are you using NetBird Cloud?** self-hosted Netbirdf with Authentik **NetBird version** `38.2` **Debug output** Mgmt log confirms that I have enabled single account mode ``` 2025-03-18T22:07:24Z INFO [context: SYSTEM] management/server/account.go:288: single account mode enabled, accounts number 1 2025-03-18T22:07:25Z INFO [context: SYSTEM] management/cmd/management.go:318: running gRPC backward compatibility server: [::]:33073 2025-03-18T22:07:25Z INFO [context: SYSTEM] management/cmd/management.go:350: management server version 0.38.2 2025-03-18T22:07:25Z INFO [context: SYSTEM] management/cmd/management.go:351: running HTTP server and gRPC server on the same port: [::]:443 2025-03-18T22:07:27Z INFO [context: SYSTEM] management/server/account.go:551: 1 entries received from IdP management 2025-03-18T22:07:27Z INFO [context: SYSTEM] management/server/account.go:582: warmed up IDP cache with 1 entries for 1 accounts ``` screenshot of the new user account which is created with the same IDP. <img width="1726" alt="Image" src="https://github.com/user-attachments/assets/b1ace3a9-db2c-4cb8-bf06-e6f67f758255" /> **Additional context** Add any other context about the problem here. **Have you tried these troubleshooting steps?** - [ * ] Checked for newer NetBird versions - [ * ] Searched for similar issues on GitHub (including closed ones) - [ * ] Restarted the NetBird client - [ * ] Disabled other VPN software - [ * ] Checked firewall settings
saavagebueno added the triage-needed label 2026-08-05 01:13:10 -04:00
Author
Owner

@sisumara commented on GitHub (Mar 21, 2025):

So, I've reboot mgmt server and it was showing that single user mode is disabled because of created accounts. I've deleted those accounts, rebooted mgmt server and it is showing that single mode is enabled again, but when I try to create a new user with IDP it creates it as owner of new account.

What I'm doing wrong?

<!-- gh-comment-id:2744536144 --> @sisumara commented on GitHub (Mar 21, 2025): So, I've reboot mgmt server and it was showing that single user mode is disabled because of created accounts. I've deleted those accounts, rebooted mgmt server and it is showing that single mode is enabled again, but when I try to create a new user with IDP it creates it as owner of new account. What I'm doing wrong?
Author
Owner

@YapWC commented on GitHub (May 2, 2025):

I am facing the same issue too. Miraculously whether new user created as Internal or External user, in the end it still create a new account for each user.

Update:
I was able to solve my problem based on this GitHub discussion

<!-- gh-comment-id:2848362513 --> @YapWC commented on GitHub (May 2, 2025): I am facing the same issue too. Miraculously whether new user created as Internal or External user, in the end it still create a new account for each user. Update: I was able to solve my problem based on this GitHub [discussion](https://github.com/netbirdio/netbird/issues/2773)
Sign in to join this conversation.
No Label triage-needed
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#7480