Skip to content

Commit

Permalink
Ignore missing user in group members
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno Meneguello committed Jan 28, 2022
1 parent 6220679 commit 6d14b35
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,10 @@ func (s *syncGSuite) getGoogleGroupsAndUsers(googleGroups []*admin.Group) ([]*ad
if err != nil {
return nil, nil, err
}
if len(u) == 0 {
log.WithField("id", m.Email).Warn("missing user")
continue
}

membersUsers = append(membersUsers, u[0])

Expand Down

0 comments on commit 6d14b35

Please sign in to comment.