Context. In the last decades, the early pre main sequence stellar rotational evolution picture has been constrained by studies targetting different regions at a variety of ages with respect to young star formation. Observational studies suggest a dependence of rotation with mass, and for some mass ranges a connection between rotation and the presence of a circumstellar disk. Not still fully explored, though, is the role of environmental conditions on the rotational regulation.Aims. We investigate the rotational properties of candidate members of the young massive association Cygnus OB2. By evaluating their rotational properties, we address questions regarding the effect of environment properties on PMS rotational evolution.Methods. We studied JHK-band variability in 5083 candidate members (24% of them are diskbearing stars). The selection of variable stars was done using Stetson variability index, and period search was performed using Lomb-Scargle periodogram for periods between 0.83-45 days. Period detections were verified by using False Alarme Probability levels, the Saunders statistics, string/rope length method, and visual verification of folded light curves.Results. We identified 1224 periodic variable stars (24% of the candidate member sample, 8% of the disk-bearing sample, and 28% of the non-disked sample). Monte Carlo simulations were performed in order to evaluate completeness and contamination of the periodic sample, out of which 894 measured periods were considered reliable. Our study was considered reasonably complete for periods between 2 and 30 days. Conclusions. The general scenario for the rotational evolution of young stars seen in other regions is confirmed by Cygnus OB2 period distributions, with disked stars rotating on average slower than non-disked stars. A mass-rotation dependence was also verified, but as in NGC 6530, very low mass stars (M ≤ 0.4M ) are rotating on average slower than higher mass stars (0.4 M < M ≤ 1.4M ). We observed an excess of slow rotators among the lower mass population. The disk and mass-rotation connection was also analysed by taking into account the incident UV radiation arising from O stars in the association. Results compatible with the disk-locking scenario were verified for stars with low UV incidence, but no statistical significant relation between rotation and disk presence was verified for stars with high UV incidence suggesting that massive stars can have an important role on regulating the rotation of nearby low mass stars.Key words. infrared: stars -stars: variables: T Tauri -stars: low-mass -stars: formation -stars: pre main sequence -stars: rotation Use \titlerunning to supply a shorter title and/or \authorrunning to supply a shorter list of authors.