Walmart (WMT 0.46%) became the surprise frontrunner in the race to acquire TikTok after partnering with Microsoft (MSFT -1.27%), but it actually had plans to be the lead buyer of the online video-sharing site.

CNBC said the retailer was slated to be the majority owner in a consortium of buyers that included Alphabet (GOOG -1.10%) (GOOGL -1.23%) and Japan's Softbank, but the U.S. government shot the idea down, saying a tech company needed to lead the buying since it was forcing the sale over national security concerns.

Couple mugging for a smartphone photo.

Image source: Getty Images.

A valuable asset

TikTok has exploded in popularity on social media, but the video-sharing app had been collecting user data surreptitiously behind a layer of encryption, a process The Wall Street Journal notes is banned by Alphabet's Android operating system.

TikTok is owned by ByteDance, one of China's largest tech companies. The Trump administration is concerned the user data could be turned over to the Chinese government to be used for blackmail, corporate espionage, or for tracking government employees who have the app installed on their phones.

ByteDance denies it shares the data with the government, and it has changed some of its data-collection processes, but TikTok was facing a ban on its use in the U.S. if it wasn't sold. ByteDance is reportedly selling its North American, Australian, and New Zealand operations.

Walmart was interested in acquiring TikTok's U.S. assets to become the exclusive e-commerce and payments processor for the app. Softbank, which had put together the consortium, felt Google's cloud-computing expertise would be an asset in backing Walmart's favorable retail image.

However, because Google didn't want to lead the acquisition, the consortium couldn't surmount the government's opposition, and Walmart turned to Microsoft as a partner.

ByteDance is still considering whether to accept their bid or a competing one from Oracle.