A California man carrying Mace roamed for nearly 17 minutes inside the secured White House perimeter before he was taken into custody March 10 near the South Portico entrance, the Secret Service acknowledged Friday.

The man did not enter the White House, the agency said, without further explaining the delay in his capture or details about alarms, protocols or responses that may have failed.

President Donald Trump was in the residence at the time of the breach.

Jonathan T. Tran, 26, of Milpitas, California, was detected crossing a five-foot outer fence near East Executive Avenue and the Treasury Department complex at 11:21 p.m. and was arrested at 11:38 p.m., the agency said.

The incident is believed to be the first intrusion on the White House grounds since Trump took office. Last year, the Secret Service added small spikes — or “pencil points” —to the top of the six-foot fence that surrounds the White House complex. The agency also announced a plan to raise the height of the fence to 11 feet by 2018.

To approach the mansion, Tran scaled two additional barriers, according to the Secret Service account, an eight-foot vehicle gate, then a 3 1/2- foot fence near the southeast corner of the East Wing.

Court documents filed at the time of his arrest omitted any reference to alarms sounding and gave only an account by the uniformed officer who saw and arrested Tran, up to 200 yards from where he had entered and after he had at one point hidden behind a pillar.

The agency said it has done more than 50 interviews and reviewed radio transmissions and video footage of the incident. It also said it has taken immediate but unspecified steps to mitigate lapses in security protocols as the investigation continues.