The existence of proper legislation regarding identity checks in France is relatively recent. Until the 1980s, the national police acted on the basis of laws with limited scope, and so typically ended up acting illegally. Indeed, only a few disparate provisions of the French Code of Criminal Procedure allowed national police officers (mainly responsible for policing in large towns and cities) to intervene in this connection, and even then they had to be able to establish a link between the persons subjected to identity checks and a crime or offence that had been committed. Consequently, only judicial identity checks, carried out on the basis of a suspicion of wrongdoing, were allowed. National police were able to carry out checks either in the context of a preliminary enquiry,  or in the event of a person being caught in the act of committing an offence.  The gendarmerie (a military body mainly responsible for policing small towns and rural areas), on the other hand, was subject to fewer constraints, at least on paper: gendarmes could check the identity of any person travelling on a public highway, on the basis of old legislation from 1903, provided they act “politely, and exhibit no behaviour that might be described as harassment or abuse of power” ...
A turning point: the 1981 “Security and Freedom Act”
The 1980s would prove to be a turning point. They were marked by the adoption of the loi “Sécurité et liberté” (“Security and Freedom Act”) of 2 February 1981  (just a few months before the election of François Mitterrand and the arrival of a left-wing government), which was described as draconian by its opponents. In the initial draft of this law, there was nothing about identity check procedures: a simple oversight? This is doubtful, as the justice ministry, like the interior ministry, was not indifferent to the appeals of the police, who were calling forcefully for a legal basis for arresting and carrying out identity checks, similar to that enjoyed by the gendarmerie. Specifically, police officers wanted to be able to act independently of any link with an offence committed or of any investigation, and therefore operate in the name of maintaining public order whenever this might be considered to be threatened (in the event of public gatherings, demonstrations, unrest on the streets, etc.). So-called “administrative identity checks”, which fit into this category, were not enshrined in law at this time. Although the Court of Cassation, in a decision rendered in 1973,  had authorised police to perform identity checks on protesters merely for taking part in an illegal gathering (the “special circumstances” justifying this measure), the absence of any law in this connection – essential given the impact on individuals’ freedom to come and go as they please – means that the basis for this decision was too fragile and inconsistent.
Finally, the Peyrefitte Act of 1981 included three articles on identity checks,  one of which legalised police practices in the name of public safety: national police officers were now permitted to carry out checks “to prevent breaches of public order, including breaches of safety of persons or property”. The evolving concept of public order is conventionally defined on the basis of three elements: keeping the peace (resolving night-time disturbances, for example), salubrity (in particular issues of health, hygiene and pollution) and safety (accidents, etc.). At the same time, this law also allows identity verification procedures, consisting of taking the individual in question to the police station if he or she is unable to prove their civil status. Such individuals may be detained for however long is necessary to establish their identity, up to a maximum of six hours (reduced to four hours in 1983). It should be noted that identity should not be confused with the notion of civil status, which includes other elements than those necessary for identification. Proof of identity may be achieved “by any means”. The possession of a national identity card has always been optional as far as the law is concerned.
Beyond reproach in legal terms; questionable in terms of legitimacy
The French Constitutional Council, called upon at the time by the parliamentary opposition, considered these legal measures to be fully compliant with the Constitution. Indeed, it felt that the procedure was accompanied by sufficient guarantees, and that it would, in any event, be up to “the judicial and administrative authorities to ensure their full compliance, and the courts to censure and suppress any illegal acts committed, and potentially to provide for the reparation of their harmful consequences”.  This would remain the line adopted by the Constitutional Council whenever cases were brought before it concerning procedures for identity checks and verifications. On this matter, we have three remarks.
The first relates to the use made of the identity verification phase, an exceptional measure in practice when compared to the total number of checks carried out; and yet this measure is essential in determining the arrest procedure in accordance with the French Constitution.
The second is linked to the role that the Constitutional Council entrusts to judges. It turns out that in practice, most of the time, operations were not subject to any sort of judicial review, especially as police officers were not required to make known the reasons justifying an identity check. It was only in cases where the identity check resulted in judicial proceedings (or procedures to remove an individual from the French territory, in the case of foreigners) that a judge might be called upon to consider the conditions of arrest.
Finally, the constitutional authority never questioned the usefulness of administrative identity checks: what purpose do they serve, given that they certainly do not prevent any breach of public order, as described in the legislation? A simple police presence is usually adequate to achieve – or attempt to achieve – this goal.
The Left retains preventive checks
With the change of government in May 1981, the “Security and Freedom Act” immediately came under the spotlight. President Mitterrand had, moreover, included its repeal in his 110 manifesto pledges (“110 Propositions for France”). But the overriding issue of the moment was to find a compromise between a justice minister who wanted to reform the act in the name of human rights and freedoms and thus put an end to administrative identity checks, and an interior minister who wanted to give police wider powers to act. The phasing out of administrative identity checks did not occur in the end. Instead, the legislature chose to base the legality of such checks on two conditions, the first linked to the scope of action, the second to the degree of urgency.  Furthermore, judicial identity checks instigated on the basis of suspicions or as part of an investigation – and adopted in a context of indifference, moreover – were reformulated to allow police officers new scopes of action. The police could now perform an identity check on individuals on the basis of “evidence”  suggesting they had committed an offence, had attempted to commit an offence or was about to commit an offence. Police officers were more comfortable with this legal framework, whose wording was closer to police terminology, when it came to justifying arrests after the event.
When foreigners are targeted: “visible signs of foreignness”
In 1986, the government revealed its true position on the role and importance of identity checks in the process of removing undesirable aliens. Before then, even if practices reflected this reality, it had not been formally made public.  This was remedied with the new reform of the French Code of Criminal Procedure:  it provided for a specific treatment of foreigners, albeit without the relationship between identity checks and administrative verifications of the status of foreigners being made entirely clear.
But under what conditions could officers directly ask individuals to produce their residence permit (essential for establishing their foreign nationality)? To answer this question, the Court of Cassation invented the famous “visible signs of foreignness”  that made it possible to presume a person was foreign, thus eliminating the need to comply with the law on identity checks. At the time, by means of circulars, the interior and justice ministers took it upon themselves to define these “visible signs”: playing an instrument from a foreign tradition in public, reading a newspaper or a book written in a foreign language, or even travelling in a car registered outside France. In practice, police officers made little use of these specific checks in their reports to justify interventions.
Growing police powers
The legislation underwent a final major reform, with the law of 10 August 1993.  This created two new legal frameworks for undertaking arrests.
First, it allowed identity checks to be carried out at the request of the public prosecutor, who simply had to define a scope of intervention, establish a time frame for the action in question, and specify the offences to be investigated. The police would then need no further justification for its operations as long as it complied with the public prosecutor’s instructions. This framework would be extensively used under Nicolas Sarkozy’s presidency to arrest undocumented migrants. The competent ministers (interior and/or justice, as appropriate) issued circulars encouraging public prosecutors to enact requisitions  around hostels, near associations offering advice and services for foreign nationals, or in certain neighbourhoods of Paris. In this way, targeted checks developed, along with arrests at the public counters of prefectures and police operations in workplaces. These operations respond to a target-driven culture, defended by the government, that aims to achieve a certain number of deportations from France.
Second, the legislature established border controls, meant to offset the disappearance of borders and therefore internal controls within the Schengen area. The police, like customs officers, may conduct checks on the administrative status of anyone on French territory within 20 km of the national border, as well as anyone passing through a railway station, port or airport open to international traffic. 
This measure, which is complex while at the same time leaving officers comfortable room for manoeuvre, has suffered two attacks, first from the European courts  and then from the French courts,  which both condemned border controls and the verification of foreigners’ administrative situations. They considered that in the absence of a better definition of the justifications for police action, these two frameworks produced an effect equivalent to border controls that the Schengen Agreement, now part of EU law, was supposed to abolish.
Moreover, under the leadership of the NGO Open Society,  a movement denouncing the ethnic profiling to which certain categories of the population are subjected, including young people perceived as being of foreign origin who live or spend time in certain neighbourhoods, and foreign nationals. A group of associations has raised a number of cases (priority preliminary rulings, action for damages against the French state as a result of discriminatory checks, still under investigation) and has called for a comprehensive reform of legislation  in a new political context, François Hollande having pledged in his presidential campaign to fight “against racial profiling in identity checks for a procedure that respects human rights”. 
Reforms promised… and then forgotten
To date, no draft legislation  amending the law on identity checks, as requested by these organisations, has been tabled. Nor, indeed, has any more consideration been given to measures such as issuing “receipts” to persons arrested or subjected to ID checks, indicating the legal framework of the action taken, or to the adoption of clear rules on body searches, or to the reform of legal assumptions deemed too permissive.
The lack of political will to change a legal situation that is conducive to producing illegal practices and further exacerbating relations between the police and a section of the population is regrettable. The only measure taken so far by the French interior ministry, namely the reintroduction of uniform numbers for police officers, enabling their identification, is not only unlikely to reduce the number of discriminatory checks,  but also appears above all to be a ploy to bury the recommendations of the Human Rights Defender  and the promises made during the 2012 presidential campaign.