Elderly people, those with type 1 diabetes, and those who have had major surgery shouldn’t take sulfonylureas. You should also avoid these medications if you have a severe infection, malnutrition, or kidney or liver disease.