SAN FRANCISCO — A month after Uber’s rocky initial public offering, its chief executive, Dara Khosrowshahi, is taking tighter control over the company.

Mr. Khosrowshahi pushed out two members of his executive team: Barney Harford, the company’s chief operating officer, and Rebecca Messina, the chief marketing officer, the company told employees on Friday.

Since Mr. Khosrowshahi was appointed chief executive more than two years ago, he has spent much of his time on a global apology tour to clean up the company’s image and install more professional management at the fast-growing, ride-hailing company.

After a series of scandals in 2017 that led to the ouster of its former chief executive, Travis Kalanick, Uber’s reputation had become badly tarnished. Mr. Khosrowshahi tried to turn that around by promising to work more closely with regulators and to improve management of the company.