Chile's 2023 winner Niemann claimed the outright lead on Friday, carding a three-under-par 68 to move to eight under for the championship.
America's Ross Steelman was tied for second at six under with Marc Leishman, while fellow Australian Cameron John fired a scintillating seven-under-par 64 to surge into contention at four under.
Even through the first round, McIlroy was three under at the turn.
The Northern Irish star headlined the marquee group with New Zealand's British Open winner Ryan Fox (five under) and Australia's Min Woo Lee (two under).
A bogey on the par-4 5th on Friday was Niemann's only blemish of the tournament so far and he recovered to finish the second round with back-to-back birdies.
The 28-year-old handled the breezy conditions and difficult pin placements with aplomb.
"It was a good day today. You can see the beauty of Kingston Heath early in the morning, so we enjoyed it," Niemann said.
"I'm really comfortable hitting against the wind and using the wind (with my) low-ball flight.
"Trying to hit the middle of the green and using the spin to chase the pin has been working well."
John enjoyed plenty of support from local fans and said his red-hot round was the stuff of dreams.
"I just kept telling myself to stick to what I'm doing, try not to get in my own way," John said.
"I felt like the game was in good shape and yeah, I'm really pleased with posting a number.
"This sandbelt golf, if you're a little bit off, it just shows you that you're a little bit off.
"So after we played yesterday, we just worked on a couple of the same things really, just smoothing it out, and it seemed to work."
John enjoyed three wins during the 2025-26 season, was second in the Australasian Order of Merit and earned a full 2027 DP World Tour card.
He missed the cut at last week's Australian PGA Championship, but can look forward to the weekend at Kingston Heath.
"It's been a long year, but a very awesome year," John said.
"To get in the mix at one of these two events is a goal every year, so it's nice to be up there now, and hopefully the wind blows and we can stay up there."
Leishman, John and Lee are among the locals seeking to become the first home Open winner since dual champion Matt Jones lifted the Stonehaven Cup in 2019.