Shawnee attorney Allan Grubb was sworn in Monday as the district attorney for District 23, which includes Pottawatomie and Lincoln Counties. Grubb was elected by voters on Nov. 6 and took his oath of office during a ceremony in Oklahoma City.