Opportunistic infections (OIs) are primarily observed in individuals with impaired immune function. This can include people with conditions such as HIV/AIDS, cancer patients undergoing chemotherapy, organ transplant recipients on immunosuppressive drugs, and those with autoimmune diseases being treated with immunosuppressive therapy.