In 781, he was transferred to the post of Danjoin (President of the Board of Censors) and was appointed Yamatsukuri no Tsukasa (Official in charge of building the mausoleum) on the death of the retired Emperor Konin.
天応元年（781年）に弾正尹に遷り、光仁上皇崩御に伴い山作司に任じられる。