WeWork is considering a candidate with deep ties to its majority shareholder SoftBank Group Corp. as its new chief executive officer, people familiar with the matter have said, in hopes of turning around the troubled coworking company.

T-Mobile US Inc. head John Legere has spoken with WeWork about the role, according to the people, who asked not to be identified because the discussions are private.

SoftBank Group Corp. took ownership of WeWork after its initial public offering broke down, and is also the majority owner of Sprint Corp. — with which Legere is currently pushing for a contentious merger of his wireless carrier.