[GH-ISSUE #5153] Group membership removed when client adding a new peer #10679

Open
opened 2026-08-05 01:26:52 -04:00 by saavagebueno · 4 comments
Owner

Originally created by @muff10 on GitHub (Jan 22, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5153

Describe the problem

I have configured Netbird with Microsoft Entra as idp and enabed JWT group sync. When a user log in to WebUI groups are synced OK. However when a user add a new peer/client the group membership is removed from this user.
User has to log out from webUI and back in again to resync group membership.
This behaviour is also reflected in the activity log.

Group xxxx was removed from user John Doe - 9:56:44 AM
Group yyyy was removed from user John Doe - 9:56:44 AM
Peer Iphone from was added with the Netbird IP 100.89.230.43 - 9:56:44 AM

(User logs in to WebUI) - 9:57:46 AM
Group xxxx was added to user John Doe - 9:57:46 AM
Group yyyy was added to user John Doe - 9:57:46 AM

To Reproduce

Steps to reproduce the behavior:

  1. Install and configure Netbird client on Iphone/laptop or other.
  2. Log in with Microsoft Entra SSO
  3. Check activity log and Users for group membership, which is removed.
  4. Log in to Netbird WebUI
  5. Check activity log and users and group membership is restored

Expected behavior

Groups should not be removed for each Peer that is added to user.

Are you using NetBird Cloud?

Netbird Self hosted

NetBird version

0.64.0

Is any other VPN software installed?

No

Have you tried these troubleshooting steps?

  • Reviewed client troubleshooting (if applicable)
  • 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 @muff10 on GitHub (Jan 22, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5153 **Describe the problem** I have configured Netbird with Microsoft Entra as idp and enabed JWT group sync. When a user log in to WebUI groups are synced OK. However when a user add a new peer/client the group membership is removed from this user. User has to log out from webUI and back in again to resync group membership. This behaviour is also reflected in the activity log. Group xxxx was removed from user John Doe - 9:56:44 AM Group yyyy was removed from user John Doe - 9:56:44 AM Peer Iphone from <IP> was added with the Netbird IP 100.89.230.43 - 9:56:44 AM (User logs in to WebUI) - 9:57:46 AM Group xxxx was added to user John Doe - 9:57:46 AM Group yyyy was added to user John Doe - 9:57:46 AM **To Reproduce** Steps to reproduce the behavior: 1. Install and configure Netbird client on Iphone/laptop or other. 2. Log in with Microsoft Entra SSO 3. Check activity log and Users for group membership, which is removed. 4. Log in to Netbird WebUI 5. Check activity log and users and group membership is restored **Expected behavior** Groups should not be removed for each Peer that is added to user. **Are you using NetBird Cloud?** Netbird Self hosted **NetBird version** `0.64.0` **Is any other VPN software installed?** No **Have you tried these troubleshooting steps?** - [x] Reviewed [client troubleshooting](https://docs.netbird.io/how-to/troubleshooting-client) (if applicable) - [x] Checked for newer NetBird versions - [x] Searched for similar issues on GitHub (including closed ones) - [x] Restarted the NetBird client - [x] Disabled other VPN software - [x] Checked firewall settings
saavagebueno added the triage-needed label 2026-08-05 01:26:52 -04:00
Author
Owner

@TobiKr commented on GitHub (Jan 27, 2026):

I can confirm the issue - same here

<!-- gh-comment-id:3804370726 --> @TobiKr commented on GitHub (Jan 27, 2026): I can confirm the issue - same here
Author
Owner

@TobiKr commented on GitHub (Jan 29, 2026):

Upgrade to latest version 0.64.2 of Management Server and Client seems to fix the issue

<!-- gh-comment-id:3816986101 --> @TobiKr commented on GitHub (Jan 29, 2026): Upgrade to latest version 0.64.2 of Management Server and Client seems to fix the issue
Author
Owner

@everhardt commented on GitHub (May 4, 2026):

I still have this issue on Management Server v0.68.3 and Client 0.70.4.

<!-- gh-comment-id:4372089147 --> @everhardt commented on GitHub (May 4, 2026): I still have this issue on Management Server v0.68.3 and Client 0.70.4.
Author
Owner

@everhardt commented on GitHub (May 13, 2026):

I think both the web UI session and the session from the peer have a JWT with group claims. And every time you do something in the web UI, your groups will be reset to the claims that were in the JWT that was created at the time you logged in through the IdP. And vice versa: every time you connect a peer it resets the groups to those that were in that JWT at the time you logged in your peer through the IdP. I haven't been able to verify this in the code, but it matches what I see in practice.

<!-- gh-comment-id:4438333688 --> @everhardt commented on GitHub (May 13, 2026): I think both the web UI session and the session from the peer have a JWT with group claims. And every time you do something in the web UI, your groups will be reset to the claims that were in the JWT that was created at the time you logged in through the IdP. And vice versa: every time you connect a peer it resets the groups to those that were in that JWT at the time you logged in your peer through the IdP. I haven't been able to verify this in the code, but it matches what I see in practice.
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#10679