Nowadays, social networks have become an integral part of modern society, significantly influencing individuals worldwide due to their extensive reach. Consequently, analyzing the data disseminated within these networks in order to identify online communities presents a major challenge for researchers in the data mining field. To address this challenge, we propose, in this paper, a novel deep user embedding framework for community extraction on social networks. Our method leverages the capability of Convolutional Neural Networks (CNNs) to produce abstract representations of users that preserve the semantic information in the data. Specifically, our approach considers both the profile content and the network structure, harnessing the power of unsupervised CNNs. The key concept underlying our proposal is that each user is represented not only by their own content but also by the content of their close friends. We employ a recursive CNN to integrate neighboring users’ content, thereby generating concise and informative user embeddings. The empirical findings obtained by our method demonstrate the effectiveness of our proposed user embeddings in efficiently detecting communities within social networks, particularly in the context of cybersecurity.