A high proportion of IDU in Bangkok were subjected to drug testing by police. Young people and methamphetamine injectors were more likely to have been tested. The findings indicate that drug testing by police is associated with the compulsory drug detention system and may be interfering with IDU's access to healthcare and voluntary drug treatment. These findings raise concern about the widespread practice of drug testing by police and its associated impacts.