Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
t-aleksander committed Feb 5, 2025
1 parent 559207c commit 8aa522a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/enterprise/directory_sync/google.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,9 @@ impl From<GroupMembersResponse> for Vec<String> {
val.members
.unwrap_or_default()
.into_iter()
// There may be arbitrary members in the group, we want only one that are also directory members
// Members without a status field don't belong to the directory
.filter(|m| m.status.is_some())
.map(|m| m.email)
.collect()
}
Expand Down

0 comments on commit 8aa522a

Please sign in to comment.