The United Nations's top human rights official has suggested that the United States should abandon its efforts to prosecute Edward Snowden, saying his revelations of massive state surveillance had been in the public interest.
The UN high commissioner for human rights, Navi Pillay, credited Snowden, a former US National Security Agency contractor, with starting a global debate that has led to calls for the curtailing of state powers to snoop on citizens online and store their data.
"Those who disclose human rights violations should be protected: we need them," Pillay told a news conference.
"I see some of it here in the case of Snowden, because his revelations go to the core of what we are saying about the need for transparency, the need for consultation," she said. "We owe a great deal to him for revealing this kind of information."
The United States has filed espionage charges against Snowden, charging him with theft of government property, unauthorised communication of national defence information and wilful communication of classified communications intelligence to an unauthorised person.
Pillay declined to say whether President Barack Obama should pardon Snowden, saying he had not yet been convicted. "As a former judge I know that if he is facing judicial proceedings we should wait for that outcome," she said. But she added that Snowden should be seen as a human rights defender.
"I am raising right here some very important arguments that could be raised on his behalf so that these criminal proceedings are averted," she said.
Pillay was speaking after issuing a report on government surveillance, The Right to Privacy in the Digital Age (pdf), which says governments must accept stronger checks on their data surveillance powers and companies must do more to stand up to the state's demands for data.
Revelations of mass US surveillance based on documents leaked by Snowden sparked outrage among American allies including Germany, Brazil and Mexico. He has sought asylum in Russia.
The leaked documents revealed massive programmes run by the NSA that gathered information on emails, phone calls and internet use by hundreds of millions of Americans.
Mona Rishmawi, head of the rule of law branch of Pillay's office, said: "In this particular case, the way we see the situation of Snowden is he really revealed information which is very, very important for human rights. We would like this to be taken into account in assessing his situation."
All branches of government must be involved in the oversight of surveillance programmes, and completely independent civilian institutions must also monitor surveillance, Pillay says in her report. Checks on government must also be clearly understandable by the public.
The report, which will be debated at the UN general assembly later this year, says any collection of communications data or metadata is potentially a breach of privacy.
Governments often force internet and telecoms firms to store metadata about their customers, which was neither necessary nor proportionate, Pillay said, adding that companies should always be ready to challenge government requests.
"This can mean interpreting government demands as narrowly as possible or seeking clarification from a government with regard to the scope and legal foundation for the demand; requiring a court order before meeting government requests for data; and communicating transparently with users about risks and compliance with government demands," she told reporters.
She added: "I would say there are serious questions over the extent to which consumers are truly aware of what data they are sharing, how, and with whom, and to what use they will be put.
"And for how long is this data going to be out there? I would say that the same rights that people have offline must be protected online."
An emergency data collection law being rushed through the British parliament may not address concerns raised by the European court of justice and is difficult to justify, Pillay said.