BACKGROUND: The All of Us Research Program enrolls diverse US participants which provide a unique opportunity to better understand the problem of opioid use. This study aims to estimate the prevalence of opioid use and its association with sociodemographic characteristics from survey data and electronic health record (EHR). METHODS: A total of 214,206 participants were included in this study who competed survey modules and shared EHR data. Adjusted logistic regressions were used to explore the associations between sociodemographic characteristics and opioid use. RESULTS: The lifetime prevalence of street opioids was 4%, and the nonmedical use of prescription opioids was 9%. Men had higher odds of lifetime opioid use (aOR: 1.4 to 3.1) but reduced odds of current nonmedical use of prescription opioids (aOR: 0.6). Participants from other racial and ethnic groups were at reduced odds of lifetime use (aOR: 0.2 to 0.9) but increased odds of current use (aOR: 1.9 to 9.9) compared with non-Hispanic White participants. Foreign-born participants were at reduced risks of opioid use and diagnosed with opioid use disorders (OUD) compared with US-born participants (aOR: 0.36 to 0.67). Men, Younger, White, and US-born participants are more likely to have OUD. CONCLUSIONS: All of Us research data can be used as an indicator of national trends for monitoring the prevalence of receiving prescription opioids, diagnosis of OUD, and non-medical use of opioids in the US. The program employs a longitudinal design for routinely collecting health-related data including EHR data, that will contribute to the literature by providing important clinical information related to opioids over time. Additionally, this data will enhance the estimates of the prevalence of OUD among diverse populations, including groups that are underrepresented in the national survey data.