nsa boot camp evan perez origwx ac_00002327.jpg
nsa boot camp evan perez origwx ac_00002327.jpg
Now playing
03:38
Inside NSA Summer Camp
Wife of NSA contractor
Wife of NSA contractor
PHOTO: CNN
Now playing
02:20
Wife of charged NSA contractor speaks
Hal Martin
Hal Martin
PHOTO: From Linkedin
Now playing
02:10
NSA contractor charged with stealing classified intel
PHOTO: Getty Images
Now playing
02:00
How intelligence briefings for Clinton, Trump will work
Russian President Vladimir Putin visits a polling station during parliamentary elections in Moscow on September 18, 2016. / AFP / POOL / GRIGORY DUKOR        (Photo credit should read GRIGORY DUKOR/AFP/Getty Images)
Russian President Vladimir Putin visits a polling station during parliamentary elections in Moscow on September 18, 2016. / AFP / POOL / GRIGORY DUKOR (Photo credit should read GRIGORY DUKOR/AFP/Getty Images)
PHOTO: AFP/AFP/AFP/Getty Images
Now playing
02:15
Is hacking group tied to Russian intelligence?
erin dnt labott us diplomat robin raphel investigation _00000509.jpg
erin dnt labott us diplomat robin raphel investigation _00000509.jpg
Now playing
02:33
Is this U.S. diplomat actually a spy?
Now playing
01:45
Senate passes bill to reform NSA programs
Fort Meade, UNITED STATES:  The logo of the National Security Agency (NSA) hangs at the Threat Operations Center inside the NSA in the Washington suburb of Fort Meade, Maryland, 25 January 2006. US President George W. Bush delivered a speech behind closed doors and met with employees in advance of Senate hearings on the much-criticized domestic surveillance.   AFP PHOTO/Paul J. RICHARDS  (Photo credit should read PAUL J. RICHARDS/AFP/Getty Images)
Fort Meade, UNITED STATES: The logo of the National Security Agency (NSA) hangs at the Threat Operations Center inside the NSA in the Washington suburb of Fort Meade, Maryland, 25 January 2006. US President George W. Bush delivered a speech behind closed doors and met with employees in advance of Senate hearings on the much-criticized domestic surveillance. AFP PHOTO/Paul J. RICHARDS (Photo credit should read PAUL J. RICHARDS/AFP/Getty Images)
PHOTO: PAUL J. RICHARDS/AFP/Getty Images/File
Now playing
03:28
White House slams Senate over lapse in spy measures
PHOTO: Alex Wong/Getty Images
Now playing
05:26
NSA stops collecting your phone data ... for now
Fort Meade, UNITED STATES: (FILES): This 25 January 2006 file photo shows the National Security Agency (NSA) in the Washington suburb of Fort Meade, Maryland, where US President George W. Bush delivered a speech behind closed doors and met with employees in advance of Senate hearings on the much-criticized domestic surveillance. The US National Security Agency has assembled the world
Fort Meade, UNITED STATES: (FILES): This 25 January 2006 file photo shows the National Security Agency (NSA) in the Washington suburb of Fort Meade, Maryland, where US President George W. Bush delivered a speech behind closed doors and met with employees in advance of Senate hearings on the much-criticized domestic surveillance. The US National Security Agency has assembled the world's largest database of telephone records tracking the phone calls of tens of millions of AT and T, Verizon and BellSouth customers, sources familiar with the program told USA Today. In an article published 11 May 2006, the daily said the NSA launched the secret program in 2001, shortly after the 11 September 2001 attacks, to analyze calling patterns in a bid to detect terrorist activity. AFP PHOTO/FILES/Paul J. RICHARDS (Photo credit should read PAUL J. RICHARDS/AFP/Getty Images
PHOTO: PAUL J. RICHARDS/AFP/Getty Images/File
Now playing
01:41
Federal court: NSA data collection is illegal
Now playing
01:19
The one issue millennials will vote for

Story highlights

The government will need a targeted warrant to obtain metadata from phone companies

President signed bill in June

(CNN) —  

The U.S. intelligence community on Sunday will cease its bulk collection of telephone metadata.

The government will move to a more “focused and targeted” approach in gathering intelligence, the Office of the Director of National Intelligence said in a statement. The shift comes more than two years after details about the program were leaked by former National Security Agency contractor Edward Snowden.

President Barack Obama in June signed a reform measure that took away the National Security Agency’s authority to collect in bulk the phone records of millions of Americans.

The USA Freedom Act requires the government obtain a targeted warrant or court order to collect phone metadata from telecommunications companies.

Backers said the program was set up to help locate suspected terrorist activity since the September 11 attacks. The government accessed times calls were logged, to what number and their duration – or, in other words, their metadata (but not content). Civil liberty groups said the old system allowed the government too much power to snoop on citizens.

The NSA has requested limited access to historical metadata until February 29, 2016. The Foreign Intelligence Surveillance Court is weighing the request.

CNN’s Mesrop Najarian contributed to this report.