Tuning the hybridization and magnetic ground state of electron and hole doped CeOs
2Al
10: an x-ray spectroscopy study
Soft x-ray absorption spectroscopy at the Ce $M_{4,5}$ edges of electron- (Ir) and hole-doped (Re) CeOs$_2$Al$_{10}$ reveals that both substitutions strongly affect the high N\'eel temperature $T_N=28.5$ K and, for Ir, the ordered moment direction. Linear dichroism is weakly substitution-dependent, validating the crystal-field description. The hybridization between conduction and $4f$ electrons, related to the $f^0$ ground-state fraction and reduced x-ray magnetic circular dichroism, is discussed in connection with enhanced $T_N$. Circular dichroism supports strong Kondo screening along the $a$ direction.