The man accused of assaulting Green Party co-leader James Shaw will keep his temporary name suppression, the judge ruled during his second appearance in court this morning.

The 47-year-old Wainuiomata man won't be named while the forensic mental health team assesses his case.

His lawyer Marty Robinson argued naming the man would cause hardship to himself, his family and his business.

Shaw was hit in the face on his way to Parliament on March 14. He suffered a suspected fractured eye socket.

His next court appearance is scheduled for May 13.

Newshub.