Skip to content

Commit

Permalink
ignore default admin group
Browse files Browse the repository at this point in the history
  • Loading branch information
t-aleksander committed Dec 12, 2024
1 parent 3046c58 commit 8b4671d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/enterprise/directory_sync/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ async fn sync_all_users_groups<T: DirectorySync>(
continue;
};

let current_groups = user.member_of(&mut *transaction).await?;
let mut current_groups = user.member_of(&mut *transaction).await?;
// We may not want to touch the default admin group
current_groups.retain(|g| g.name != "admin");
debug!(
"User {} is a member of {} groups in Defguard: {:?}",
user.email,
Expand Down

0 comments on commit 8b4671d

Please sign in to comment.