diff --git a/pkg/connector/team.go b/pkg/connector/team.go index c15b5189..a60c7219 100644 --- a/pkg/connector/team.go +++ b/pkg/connector/team.go @@ -104,7 +104,7 @@ func (o *teamResourceType) List(ctx context.Context, parentID *v2.ResourceId, pt } for _, team := range teams { - fullTeam, _, err := o.client.Teams.GetTeamBySlug(ctx, orgName, fmt.Sprintf("%v", team.GetName())) + fullTeam, _, err := o.client.Teams.GetTeamByID(ctx, orgID, team.GetID()) //nolint:staticcheck // TODO: migrate to GetTeamBySlug if err != nil { if isNotFoundError(resp) { return nil, "", nil, uhttp.WrapErrors(codes.NotFound, fmt.Sprintf("team: %d not found", team.GetID()))