A western Sydney poo bandit was caught pants-down on camera leaving a disgusting surprise for a local law firm after a petty argument escalated into a huge stink.

A man who did a poo on the doorstep of a Sydney law firm was captured on CCTV waddling around the balcony “with his pants around his ankles and his bare backside in full view”, court documents have revealed.

Michael Makdessi had attempted to cover his tracks by stealing one of the security cameras on the “open-air” deck outside Astor Legal, formerly Marsh Blom Lawyers, on George St in Parramatta.

The 33-year-old works as a barber nearby.

His foul bowel movements spanned five minutes on a Sunday morning last October.

The incident came about after the building’s owner and the legal tenants kicked up a stink over Makdessi’s persistent smoking “in the area directly beneath the entrance to their offices”.

“There have been ongoing requests by both parties for the accused to cease this behaviour and leave the area,” police said in court documents seen by news.com.au.

“Despite this, the accused continues to trespass and smoke at the location.”

RELATED: Blonde poo jogger mystery continues

RELATED: Poo jogger revealed as corporate executive

At 9am on October 13, Makdessi – wearing a grey hoodie, black tracksuit pants and white runners – was captured on CCTV walking across the wooden balcony outside the law firm.

He latches onto a door frame and is seen jumping and hitting a camera down with his hand, causing it to fall onto the floor and stop working.

The camera mounted on the wall behind Makdessi filmed his next moves.

“About 9.03am, the accused is captured walking with his pants around his ankles and his bare backside in full view,” police facts tendered to Parramatta Local Court states.

“A number of white tissues can be seen on the door mat outside the main entrance to the office of Marsh and Blom Lawyers. The accused walks to a corner of the balcony and appears to urinate in the corner.

“About 9.04am, the accused is captured walking around with his pants around his ankles with his penis in full view.

“He is captured picking up two white tissues from the floor and placing them together before wiping his backside with the tissue. The accused then folds the tissue again before the CCTV footage stops.”

RELATED: Doctor explains why people poo in public

With his pants pulled back up, Makdessi was filmed from a camera inside one of the offices dashing down the staircase, leaving the tissues on the doormat outside Astor Legal.

He was also seen to have pocketed the $345 black and white Arlo Pro 2 CCTV camera.

That night, the building’s owner remotely checked the CCTV footage and “immediately identified the male depicted” to be Makdessi “due to his previous dealings with him”, the court papers state.

He later notified the firm who also identified the poo bandit due to their “numerous dealings” with Makdessi.

“A number of photographs were obtained and provided to police before the faecal matter was removed and forensically cleaned,” the documents state.

Police arrived shortly before noon the next day – more than 24 hours after the defecation – and found a number of tissues on the floor “with what appeared to be faeces on them”.

“Police could also smell a strong aroma of faeces,” the documents state.

“The tissues were photographed by police before they were disposed of.”

Makdessi was arrested on October 16 and admitted to the crimes. In an electronic interview, he further made “full and frank admissions” about “defecating on the doorstep” and stealing the CCTV camera.

“During the interview the accused notified police as to the location of the stolen CCTV camera and ensured he would facilitate its return to police and in turn the rightful owner of the property,” police said.

“He was asked if he would have returned the camera without police intervention, the accused replied, ‘Probably not’.”

Police took photographs of his face, head and the “distinctive black pistol tattoo” on his upper right thigh as it was captured on the CCTV.

The 33-year-old has pleaded guilty to offensive behaviour in a public place and larceny, conceding in court documents seen by news.com.au today it was a “disgusting act”.

Makdessi’s criminal history spans 16 pages including time behind bars for leading police on a pursuit and driving while disqualified.

But he’s fully co-operated with police and shown remorse for his behaviour, the papers state.

He pays board to live at his family home in Toongabbie in Sydney’s west and has no dependants.

His bail conditions include to be of good behaviour and stay away from the upper level offices and veranda, the toilets, driveway and “the land outside” the lower level of the George St building. He also must not contact or approach any employee of the legal firm.

Makdessi is, however, allowed to go to the Thai and Lebanese restaurants and computer shop.

He is due to be sentenced on March 11.