Article L814-1 of the French Code governing the entry and residence of foreign nationals and the right of asylum
The competent administrative authority, police services and gendarmerie units are empowered to detain the passport or travel document of foreign nationals in an irregular situation.In exchange, they issue them with a receipt valid as proof of their identity and on which the date of detention and the arrangements for returning the detained document are mentioned.