This observational study assesses the role of medical cannabis law and recreational cannabis law enactment in diagnosed cannabis use disorder prevalence among Veterans Health Administration patients by using yearly electronic medical record data from 2005 to 2019.