Skip to content

Commit

Permalink
Fixing method
Browse files Browse the repository at this point in the history
  • Loading branch information
mvbrock committed Jan 10, 2025
1 parent c2319c6 commit acf1415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/srv/discovery/fetchers/azure-sync/memberships.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func expandMemberships(ctx context.Context, cli *msgraph.Client, principals []*a
errCh := make(chan error, len(principals))
for _, principal := range principals {
eg.Go(func() error {
err := cli.IterateUserMembership(ctx, principal.Id, func(obj *msgraph.DirectoryObject) bool {
err := cli.IterateUserMemberships(ctx, principal.Id, func(obj *msgraph.DirectoryObject) bool {
principal.MemberOf = append(principal.MemberOf, *obj.ID)
return true
})
Expand Down

0 comments on commit acf1415

Please sign in to comment.