Is it illegal to keep other people's contact information and names after consulting companies or enterprises online?

According to official website, strictly speaking, it is illegal to disclose information without my consent. Other people's phone names are private, but in practice, if they are the information of relatives and friends, it is not illegal! However, this kind of violation is only a general violation, and the perpetrator has no intention to disclose other people's information subjectively, and generally will not be punished. For specific information, please pay attention to official website for first-hand authoritative information.