People with type 1 diabetes are at the highest risk of developing ketoacidosis, as their bodies do not produce any insulin. However, individuals with type 2 diabetes can also develop ketoacidosis if their condition is poorly managed or if they experience certain triggers such as illness or severe stress.