A key united nations body has condemned Australia’s indefinite detention of asylum seekers and refugees as arbitrary and unlawful.

The working group on arbitrary detention has published five opinions recommending Australia immediately release the men held and provide compensation and other reparations for unlawful detention.

The Australian government has defended its policies saying it is administrative in nature and not for punitive purposes, and has succeeded in stopping the flow of asylum seeker boats to Australia.