In the US, municipalities may require permits for building drainage systems as federal law requires water sent to storm drains to be free of certain contaminants and sediment.
In the UK, local authorities may have specific requirements for the outfall of a French drain into a ditch or watercourse.