The Oniwaban was a position in the Edo bakufu (the Japanese feudal government headed by a shogun) created by Yoshimume TOKUGAWA, the eighth Seiitaishogun (the Shogun in charge of conquering barbarian territories) in the Edo period.
御庭番（おにわばん）は江戸時代の第8代征夷大将軍、徳川吉宗が新設した江戸幕府の役職。