...
We have a contract with You;
You have given us permission to do so;
We must provide products or Services to You after You have purchased something from us;
We must provide Services to You because You have requested such Services;
We have a legitimate interest (ege.g. to protect our apps and systems from abuse of service or cyber-attacks);
It is necessary to comply with the law.
...