Thailand's prime minister defended police for requesting information about minority Muslim students from universities around the country after the move was called discriminatory and illegal.

Prime Minister Prayuth Chan-ocha said on Tuesday the police request, which follows a series of bomb blasts in the capital Bangkok in August blamed on Muslim suspects, was needed to build a national security database.

An official letter from police, shared online by former rights...