Licorice (Glycyrrhiza glabra L.) is an industrial medicinal plant that is potentially threatened by extinction. In this study, the effects of salinity (0 and 200 mM sodium chloride (NaCl)) and Azotobacter inoculation were evaluated on 16 licorice accessions. The results showed that salinity significantly reduced the fresh and dry biomass (FW and DW, respectively) of roots, compared to plants of the control group (a decrease of 15.92% and 17.26%, respectively). As a result of bacterial inoculation, the total sugar content of roots increased by 21.56% when salinity was applied, but increased by 14.01% without salinity. Salinity stress increased the content of glycyrrhizic acid (GA), phenols, and flavonoids in licorice roots by 104.6%, 117.2%, and 56.3%, respectively. Integrated bacterial inoculation and salt stress significantly increased the GA content in the accessions. Bajgah and Sepidan accessions had the highest GA contents (96.26 and 83.17 mg/g DW, respectively), while Eghlid accession had the lowest (41.98 mg/g DW). With the bacterial application, the maximum amounts of glabridin were obtained in Kashmar and Kermanshah accessions (2.04 and 1.98 mg/g DW, respectively). Bajgah and Kashmar accessions had higher amounts of rutin in their aerial parts (6.11 and 9.48 mg/g DW, respectively) when their roots were uninoculated. In conclusion, these results can assist in selecting promising licorice accessions for cultivation in harsh environments.