The regulation applies only to people who happen to be formally residing in Germany for at least 6 months. This restriction excludes travellers (and newcomers normally) from lawfully acquiring or possessing cannabis in Germany. Tourists caught with cannabis can face fines or imprisonment. The severity from the penalty is determined by the am