MIAMI - JUNE 23:  The FBI building that was allegedly one of the targets of a group of seven individuals, who were arrested yesterday, is seen June 23, 2006 in Miami, Florida. According to reports, the suspected terror group also wanted to target the Sears tower in Chicago.  (Photo by Joe Raedle/Getty Images)
Joe Raedle/Getty Images North America/Getty Images
MIAMI - JUNE 23: The FBI building that was allegedly one of the targets of a group of seven individuals, who were arrested yesterday, is seen June 23, 2006 in Miami, Florida. According to reports, the suspected terror group also wanted to target the Sears tower in Chicago. (Photo by Joe Raedle/Getty Images)
Now playing
03:33
A guide to accusations against the FBI
trump rally MO 092118
trump rally MO 092118
Now playing
00:43
Trump vows to get rid of 'lingering stench'
Rod Rosenstein
pool
Rod Rosenstein
Now playing
01:31
NYT: Rosenstein felt used in Comey firing
FBI Agent Peter Strzok, who exchanged 375 text messages with Department of Justice attorney Lisa Page that led to his removal from special counsel Robert Mueller's probe into ties between the Trump campaign and the Kremlin's efforts to interfere in the U.S. election last summer, photographed outside his home in Fairfax, Virginia on Wednesday, January 3, 2018. Credit: Ron Sachs / CNP (RESTRICTION: NO New York or New Jersey Newspapers or newspapers within a 75 mile radius of any part of New York, New York, including without limitation the New York Daily News, The New York Times, and Newsday.) Photo by: Ron Sachs/picture-alliance/dpa/AP Images
Ron Sachs/picture-alliance/dpa/AP
FBI Agent Peter Strzok, who exchanged 375 text messages with Department of Justice attorney Lisa Page that led to his removal from special counsel Robert Mueller's probe into ties between the Trump campaign and the Kremlin's efforts to interfere in the U.S. election last summer, photographed outside his home in Fairfax, Virginia on Wednesday, January 3, 2018. Credit: Ron Sachs / CNP (RESTRICTION: NO New York or New Jersey Newspapers or newspapers within a 75 mile radius of any part of New York, New York, including without limitation the New York Daily News, The New York Times, and Newsday.) Photo by: Ron Sachs/picture-alliance/dpa/AP Images
Now playing
02:27
FBI agent testifies on controversial Trump texts
strzok lawyer
CNN
strzok lawyer
Now playing
01:11
Strzok lawyer: Unsure he will comply with subpoena
Peter Strzok
U.S. government
Peter Strzok
Now playing
02:30
Controversial FBI agent co-wrote Comey draft
President Donald Trump listens during a meeting with state leaders about prison reform, Thursday, Aug. 9, 2018, at Trump National Golf Club in Bedminster, N.J. (AP/Carolyn Kaster)
Carolyn Kaster/AP
President Donald Trump listens during a meeting with state leaders about prison reform, Thursday, Aug. 9, 2018, at Trump National Golf Club in Bedminster, N.J. (AP/Carolyn Kaster)
Now playing
01:51
Trump repeats unproven claim about FBI spy
Clapper Trump view FBI spying Russia es_00001020.jpg
CNN
Clapper Trump view FBI spying Russia es_00001020.jpg
Now playing
01:22
Clapper: FBI was not spying on Trump's campaign
James Clapper newday 05212018
CNN
James Clapper newday 05212018
Now playing
02:13
Clapper: Trump's demand a 'disturbing assault'
US President Donald Trump speaks during a meeting with NATO Secretary General Jens Stoltenberg in the Oval Office of the White House in Washington, DC, May 17, 2018. (Photo by SAUL LOEB / AFP)        (Photo credit should read SAUL LOEB/AFP/Getty Images)
SAUL LOEB/AFP/Getty Images
US President Donald Trump speaks during a meeting with NATO Secretary General Jens Stoltenberg in the Oval Office of the White House in Washington, DC, May 17, 2018. (Photo by SAUL LOEB / AFP) (Photo credit should read SAUL LOEB/AFP/Getty Images)
Now playing
02:20
Trump: I demand DOJ look into FBI
Now playing
01:55
Giuliani: Trump told Mueller he wasn't FBI pick
FBI Director Christopher Wray testifies on worldwide threats during a Senate Intelligence Committee hearing on Capitol Hill in Washington, DC, February 13, 2018. / AFP PHOTO / SAUL LOEB        (Photo credit should read SAUL LOEB/AFP/Getty Images)
SAUL LOEB/AFP/Getty Images
FBI Director Christopher Wray testifies on worldwide threats during a Senate Intelligence Committee hearing on Capitol Hill in Washington, DC, February 13, 2018. / AFP PHOTO / SAUL LOEB (Photo credit should read SAUL LOEB/AFP/Getty Images)
Now playing
01:44
FBI director: I am committed to independence
Now playing
00:55
Who is Christopher Wray?
Acting Director of the Federal Bureau of Investigation (FBI) Andrew McCabe speaks during a press conference at the US Department of Justice in Washington, DC, on July 13, 2017.
JIM WATSON/AFP/Getty Images
Acting Director of the Federal Bureau of Investigation (FBI) Andrew McCabe speaks during a press conference at the US Department of Justice in Washington, DC, on July 13, 2017.
Now playing
01:25
Sessions fires FBI's Andrew McCabe
(CNN) —  

Two FBI officials who have faced scrutiny in recent months resigned from the bureau on Friday, sources familiar with their departures have confirmed to CNN.

Lisa Page, who served as an FBI lawyer and close adviser to former Deputy Director Andrew McCabe, voluntarily resigned Friday, a source close to Page told CNN.

Page came under increasing attack after her text messages with FBI special agent Peter Strzok criticizing President Donald Trump came to light last winter. She briefly served on special counsel Robert Mueller’s team last summer before returning to her duties at the FBI.

The text messages between Strzok and her became fodder for the President and Republican lawmakers who leveled accusations that some members of the FBI working on the Russia probe are biased against Trump.

James A. Baker, the former general counsel for the FBI and one of former FBI Director James Comey’s closest advisers, also resigned Friday, according to a source familiar with Baker’s departure. A second source familiar with Baker’s thinking said his departure was unrelated to Page’s resignation and that hers came as a surprise to him. He left the FBI voluntarily, according to a person familiar with his departure.

Baker will be going to Lawfare, a national security blog affiliated with the Brookings Institution. He was tapped as the FBI’s top lawyer in January 2014, but was reassigned from his post as general counsel elsewhere in the agency last year.

Comey said in a statement on Friday, “Jim Baker represents the best of the Department of Justice and the FBI. He has protected the country and the rule of law throughout his career and leaves an inspiring legacy of service. He is what we should all hope our kids become, a person of integrity.”

Their departures were first reported by The New York Times.

CNN’s Sophie Tatum contributed to this report.