[GH-ISSUE #5337] IdP JWT allow groups lock out local accounts #11266

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

Originally created by @Raylands on GitHub (Feb 15, 2026).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/5337

Describe the problem

When you set up an IdP and restrict logins to only specific groups, your local owner account gets locked out.
You either need an IdP User with admin privileges or edit the sqlite database store.db to get back in.

BEGIN; UPDATE accounts SET settings_jwt_groups_enabled = 0 WHERE id='<ID_OF_THE_ROW>'; COMMIT;

To Reproduce

  1. Setup an IdP
  2. Enable JWT group sync
  3. Setup JWT claims
  4. Setup JWT allow groups
  5. Login with you local account

Expected behavior

The local user can login since the JWT allow groups check should only run for IdPs (which should also be a per IdP setting to configure)

Are you using NetBird Cloud?

Latest self-hosted version

Management
v0.65.1
Dashboard
v2.32.0

Originally created by @Raylands on GitHub (Feb 15, 2026). Original GitHub issue: https://github.com/netbirdio/netbird/issues/5337 **Describe the problem** When you set up an IdP and restrict logins to only specific groups, your local owner account gets locked out. You either need an IdP User with admin privileges or edit the sqlite database `store.db` to get back in. `BEGIN; UPDATE accounts SET settings_jwt_groups_enabled = 0 WHERE id='<ID_OF_THE_ROW>'; COMMIT;` **To Reproduce** 1. Setup an IdP 2. Enable JWT group sync 3. Setup JWT claims 4. Setup JWT allow groups 5. Login with you local account **Expected behavior** The local user can login since the JWT allow groups check should only run for IdPs (which should also be a per IdP setting to configure) **Are you using NetBird Cloud?** Latest self-hosted version Management v0.65.1 Dashboard v2.32.0
saavagebueno added the triage-needed label 2026-08-05 01:29:06 -04:00
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#11266