at the pleasure of (someone)
idiomDefinition of at the pleasure of (someone)
—used to say that something is done or can be done because someone wants it to be done I serve at the pleasure of the president, and I will continue to serve as long as the president wants me to.