This question already has an answer here:
Is carrying a passport mandatory, to travel from Germany to Czech Republic and back for a non-European citizen? The persons have with them a valid Blaue Karte with them issued by Germany which they intend to carry.
If it is important, the persons in question are Indian citizens whose passports are currently not with them though they will be getting them back after a few days. The intended mode of travel is Deutsche Bahn and Flixbus.