The exponential growth of social media platforms has led to a demand for applications related to social network analysis. One major challenge in social network analysis is identifying communities within the network. In this work, a novel QST-ClustNet is proposed in which the sooty tern optimization algorithm is integrated with the quantum behavior to identify the communities within the social network by clustering the user profiles. Initially, the LinkedIn dataset is pre-processed using natural language processing (NLP) techniques such as data extraction, removal of stop words handling the missing data or values, and data stemming for removing irrelevant data. After preprocessing the feature are extracted using bag of words for the creation on user profiles. These created features are given as an input to frequency probability-based similarity measures to find similarities between users. Finally, quantum-inspired Sooty tern optimization is utilized for clustering the user profile in social networks. The effectiveness of the proposed strategy is examined using several parameters, such as Davies Bouldin score, Calinski Harabasz score, and Silhouette score. The proposed QST-ClustNet improves the silhouette score 22.48, 16.25, and 11.081 better than K mean clustering, C mean clustering, and fuzzy C mean clustering respectively. This approach helps examine and comprehend the structure of professional networks of online social networks, which can be applied for multiple applications such as job recommendation, talent acquisition, and many more.