Yahoo! Inc. chief executive officer Marissa Mayer, by ordering staff to report to offices, risks losing the productivity gains that can come from flexible work arrangements and may jeopardize her ability to lure top talent.

Jackie Reses, Yahoo’s executive vice president of people and development, sent a memo last week asking employees with work-from-home arrangements to make their way to the company’s offices, starting June.