The ruling came in response to a challenge to the law which governs the powers of Germany's federal police (BKA).
The current rules allow the BKA in certain circumstances to surveil people who are in contact with terror suspects.
However the court said that in order for such surveillance to be justified, the person affected had to have a "specific individual link to the danger being investigated".
Some of those who brought the complaint were worried that under the current rules the police could surveil lawyers who had to be in contact with suspects in order to represent them.
The court also said stronger protections were needed for the federal police's handling of personal data.
In the case of suspects who have not yet been convicted of a crime, the court said that a higher threshold should be applied before sharing their data with other police forces.
The court said that the relevant law must be changed by the end of July 2025 at the latest.
Comments