[GH-ISSUE #4528] SSO authentication issue when a user is deleted in IDP #9650

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

Originally created by @mahesh-veerappa01 on GitHub (Sep 22, 2025).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/4528

Describe the problem

Netbird is configured to use Azure (EntraID) as IDP for SSO user authentication. When a user is deleted from Entra Id, netbird authention fails for all users also UI (configured with SSO) do not load and fails with error "Request fails with status code 401 (Error: Token invalid)"

To Reproduce

  1. Configure Netbird to use EntraID as IDP for Single Sign-on
  2. Configure SSO for a user
  3. Delete SSO configigured user account in EntraID
  4. After the netbird database-IDP sync interval, try to login to netbird UI

Expected behavior

Login to Netbird UI fails for all users and also any SSO authentication against Entra ID fails with error 401.

Are you using NetBird Cloud?

No. Using self hosted

NetBird version

netbird v0.55.0

Is any other VPN software installed?

No

Debug output

Not available

Create and upload a debug bundle, and share the returned file key:

NA

Uploaded files are automatically deleted after 30 days.

Alternatively, create the file only and attach it here manually:

NA

Screenshots

Image

======Logs====
2025-09-15T17:42:28Z ERRO [context: HTTP, requestID: ----] management/server/http/util/util.go:85: got a handler error: token invalid
2025-09-15T17:42:28Z ERRO [context: HTTP, requestID: ----] management/server/telemetry/http_api_metrics.go:189: HTTP response ----: GET /api/users/current status 401
2025-09-15T17:42:41Z WARN management/server/account.go:817: user ---- not found in IDP
2025-09-15T17:42:41Z INFO [requestID: ----, context: HTTP] management/server/account.go:994: cache invalid. Users unknown to the cache: 1

---- - masked user account

Originally created by @mahesh-veerappa01 on GitHub (Sep 22, 2025). Original GitHub issue: https://github.com/netbirdio/netbird/issues/4528 Describe the problem Netbird is configured to use Azure (EntraID) as IDP for SSO user authentication. When a user is deleted from Entra Id, netbird authention fails for all users also UI (configured with SSO) do not load and fails with error "Request fails with status code 401 (Error: Token invalid)" To Reproduce 1. Configure Netbird to use EntraID as IDP for Single Sign-on 2. Configure SSO for a user 3. Delete SSO configigured user account in EntraID 3. After the netbird database-IDP sync interval, try to login to netbird UI Expected behavior Login to Netbird UI fails for all users and also any SSO authentication against Entra ID fails with error 401. Are you using NetBird Cloud? No. Using self hosted NetBird version netbird v0.55.0 Is any other VPN software installed? No Debug output Not available Create and upload a debug bundle, and share the returned file key: NA *Uploaded files are automatically deleted after 30 days.* Alternatively, create the file only and attach it here manually: NA **Screenshots** <img width="825" height="208" alt="Image" src="https://github.com/user-attachments/assets/9fa9b013-2a01-4197-b454-c8402700987a" /> ======Logs==== 2025-09-15T17:42:28Z ERRO [context: HTTP, requestID: ********-****-****-****-************] management/server/http/util/util.go:85: got a handler error: token invalid 2025-09-15T17:42:28Z ERRO [context: HTTP, requestID: ********-****-****-****-************] management/server/telemetry/http_api_metrics.go:189: HTTP response ********-****-****-****-************: GET /api/users/current status 401 2025-09-15T17:42:41Z WARN management/server/account.go:817: user ********-****-****-****-************ not found in IDP 2025-09-15T17:42:41Z INFO [requestID: ********-****-****-****-************, context: HTTP] management/server/account.go:994: cache invalid. Users unknown to the cache: 1 ======= ********-****-****-****-************ - masked user account
saavagebueno added the triage-needed label 2026-08-05 01:22:57 -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#9650