Weak lensing is an important technique to determine the masses of galaxy groups . However , the distortion imprint on the shape of the background galaxies is not only affected by the gravitational field of the main group but by all the mass content along the line-of-sight . Using COSMOS shear mock data we study the shear profile around 165 groups and investigate the level at which the neighbouring groups can enhance or suppress the shear signal from the main halo . The mock data are based on CFHT and Subaru observations , which are used to obtain the photometric redshifts of galaxies in the field and a realistic galaxy density , given by the weak lensing distortion analysis of the observed data . We further use information on the galaxy groups ( having a median mass and redshift of M _ { 200 } = 3.1 \times 10 ^ { 13 } M _ { \odot } and z = 0.68 ) from the COSMOS X-ray catalogue of extended sources . The expected gravitational shear field of these groups is calculated assuming that the haloes are described by NFW density profiles , and the total shear is computed by summing the shear over all the lenses . We conclude that , on average , the signal-to-noise for a detection of the main halo is affected by \thickapprox 15 \% \times \sqrt { n _ { gal } / 30 } with respect to the signal-to-noise the same halo would have if it was isolated in the sky . Groups with neighbours that are close in projected distance ( \lesssim 1 ^ { \prime } ) are the most affected , but haloes located at larger angular distances also cause a measurable shear signal . These ( angular ) distant groups can be interpreted as uncorrelated large-scale structure . The average bias in the mass excess estimate of individual groups that is introduced by the external haloes is zero with an rms of \sim 6 - 72 \% , depending on the aperture size used . One way to eliminate this bias is by stacking the density profile of several groups . The shear signal introduced by large-scale structure acts as an external source of noise . The averaged uncertainty introduced is \sigma _ { \gamma _ { t } } ^ { LSS } \sim 0.006 per component for an aperture size of \theta \sim 5 ^ { \prime } , which corresponds to \sim 1.8 \% of the one-component intrinsic ellipticity value . This large-scale structure noise error becomes equal to intrinsic ellipticity noise if there are measurements for \sim 3000 galaxies within a certain aperture , a number that is already achieved by current deep surveys such as COSMOS and , therefore , that should not be ignored .