The new order from school officials is in response to rising COVID-19 cases on campus.
Under the order, students will be allowed to leave for essentials such as food, medical care and supplies.
SDSU officials say there are 184 cases within the university so far.
USC announces 104 new COVID cases, mostly attributed to student gatherings at off-campus housing
USC announces 104 new COVID cases, mostly attributed to off-campus housing gatherings