Oniwaban (the shogunate's guard of the inner garden) is often considered to be same as ninja, but it is a misunderstanding, actually Yoshimune TOKUGAWA, the eighth shogun just classified Kusurigomeyaku (the predecessor of oniwaban) whom he brought from Kishu Province into the same rank with Igamono, oniwaban is not related to ninja (for details, refer to the section of Oniwaban).
御庭番は忍者と同様に思われがちだが、誤りであり八代将軍・徳川吉宗が紀州から連れて来た薬込役を伊賀者と同格に格付けしただけに過ぎず、彼ら御庭番は忍者とはかかわりがない（詳しくは御庭番の項を参照されたい）。