Yasunori returned to Kyoto in 876 and became Uemon Gon no suke (Provisional Assistant Captain of the Right Division of Outer Palace Guards) and Kebiishi (Office of Police and Judicial Chief) where he used his great skills to ensure the safety of the capital, and became Minbu Taifu (Senior Assistant Minister of Popular Affairs) and progressed to the rank of Jugoinojo (Junior Fifth Rank, Upper Grade).
貞観18年（876年）保則は京に還り、右衛門権佐・検非違使となり都の治安に手腕を発揮し、民部大輔となり従五位上に進む。