A mandarin (Chinese: 官; pinyin: guān) was a bureaucrat scholar in the history of China, Korea and Vietnam. The term is generally applied to the officials appointed through the imperial examination system; it sometimes includes and sometimes excludes the eunuchs also involved in the governance of the two realms.
https://en.wikipedia.org/wiki/Mandarin_(bureaucrat)#:~:text=A%20mandarin%20(Chinese%3A%20%E5%AE%98%3B,governance%20of%20the%20two%20realms.
Two Mandarins Behind Her