Nevertheless, his influence grew unexpectedly under the reign of the foreign kings, Cambyses and his successor Darius I: Udjahorresnet apparently became a sort of collaborationist for the Persians, managing to enter in the royal court as chancellor and chief physician.