Bot and spam accounts on Twitter have become a central issue in the legal fight over whether Musk, who is Tesla Inc's chief executive, must complete his $44 billion acquisition of the social media company.
Twitter was ordered to collect, review and produce documents from former General Manager of Consumer Product Kayvon Beykpour, according to the order from Chancellor Kathaleen McCormick of the Delaware Court of Chancery.
Twitter and lawyers for Musk, the world's richest person, did not immediately respond to requests for comment.
Beykpour, who left Twitter after the social media company agreed in April to be acquired by Musk, was described in Musk's court filings as one of the executives "most intimately involved with" determining the amount of spam accounts.
Beykpour did not immediately respond to a request for comment sent through LinkedIn.
McCormick said in her order on Monday that she was denying Musk's request for access to 21 other people with control over relevant information.
Musk's legal team had written to McCormick last week asking her to order Twitter to hand over employee names so they could be questioned.
Musk accused Twitter earlier this month of fraud for misrepresenting the number of real active users on its platform, which Twitter has denied. The company has accused him of breaching his agreement to acquire the company and wants McCormick to order him to complete the deal at $54.20 a share.
Twitter's stock closed up 0.5% at $44.50 per share on Monday.
(Reporting by Tom Hals in Wilmington, Delaware; Editing by Josie Kao)
By Tom Hals