yes lol Izanami would've worked on Obito, Tobi, "Madara",Masked Man, "No One" ..
since he didn't want anyone to know he was Obito , whom he really was, and wanted people to think he was Madara.
Also, anyone can get caught in Izanami, since it is a genjutsu loop of recored actions, but breaking out would be easier for those who accept themselves.. in other words they would break out sooner that Kabuto did.. maybe.. , but Itachi's arsenal of genjutsu could've forced people to question themselves & second guess who they really are.