[PR #1320] [MERGED] Optimize IdP user deletion #13496

Closed
opened 2026-08-05 02:08:36 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/1320
Author: @bcmmbaga
Created: 11/20/2023
Status: Merged
Merged: 11/20/2023
Merged by: @bcmmbaga

Base: mainHead: skip-idp-user-delete


📝 Commits (1)

  • af4af3d Skip user deletion if the user does not exist in IdP

📊 Changes

1 file changed (+11 additions, -4 deletions)

View changed files

📝 management/server/user.go (+11 -4)

📄 Description

Describe your changes

The change ensures that the deletion operation is skipped when the user does not exist in the Identity Provider. This is particularly beneficial in scenarios where a user account was provisioned but the user did not sign in, preventing unnecessary deletions from the IdP.

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)
  • Extended the README / documentation, if necessary

🔄 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/1320 **Author:** [@bcmmbaga](https://github.com/bcmmbaga) **Created:** 11/20/2023 **Status:** ✅ Merged **Merged:** 11/20/2023 **Merged by:** [@bcmmbaga](https://github.com/bcmmbaga) **Base:** `main` ← **Head:** `skip-idp-user-delete` --- ### 📝 Commits (1) - [`af4af3d`](https://github.com/netbirdio/netbird/commit/af4af3d0708c76bbc379ecc427917b4e76558ee9) Skip user deletion if the user does not exist in IdP ### 📊 Changes **1 file changed** (+11 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `management/server/user.go` (+11 -4) </details> ### 📄 Description ## Describe your changes The change ensures that the deletion operation is skipped when the user does not exist in the Identity Provider. This is particularly beneficial in scenarios where a user account was provisioned but the user did not sign in, preventing unnecessary deletions from the IdP. ## Issue ticket number and link ### Checklist - [ ] Is it a bug fix - [ ] Is a typo/documentation fix - [x] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <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 02:08:36 -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#13496