To assess the psychosocial functioning concerning obsessive-compulsive symptoms (OCS) and/or obsessive-compulsive disorder (OCD) comorbidity in people with schizophrenia, schizoaffective disorder, or bipolar disorder diagnosed in a large case register database in Southeast London. Data were retrieved from the South London and Maudsley NHS Foundation Trust Biomedical Research Centre (SLaM BRC) register using Clinical Record Interactive Search (CRIS) system, a platform allowing research on full but de-identified electronic health records for secondary and tertiary mental healthcare services. Information of schizophrenia, schizoaffective disorder, bipolar disorder diagnosis and OCS/OCD status was ascertained from structural or free-text fields through natural language processing (NLP) algorithms based on artificial intelligence techniques during the observation window of January 2007 to December 2016. Associations between comorbid OCS/OCD and recorded Health of the Nation Outcome Scales (HoNOS) for problems with activities of daily living (ADLs), living conditions, occupational and recreational activities, and relationships were estimated by logistic regression with socio-demographic confounders controlled. Of 15,412 subjects diagnosed with schizophrenia, schizoaffective disorder, or bipolar disorder, 2,358 (15.3%) experienced OCS without OCD, and 2,586 (16.8%) had OCD recorded. The presence of OCS/OCD was associated with more problems with relationships (adj.OR = 1.34, 95% CI: 1.25-1.44), ADLs (adj.OR = 1.31, 95%CI: 1.22-1.41), and living conditions (adj.OR = 1.31, 95% CI: 1.22-1.41). Sensitivity analysis revealed similar outcomes. Comorbid OCS/OCD was associated with poorer psychosocial functioning in people with schizophrenia, schizoaffective disorder, or bipolar disorder. This finding highlights the importance of identification and treatment of comorbid OCS among this vulnerable patient group.