White House junior staffer Andrew Giuliani was up for a promotion after President Trump dined with his dad, Rudy, at Mar-a-Lago — but instead the younger Giuliani lost his access to the West Wing after top presidential aides objected, a report said Wednesday.

Trump ordered the promotion for the younger Giuliani, telling staffers that he wanted Andrew to be named a “special assistant to the president,” Axios reported, citing sources.

But chief of staff John Kelly put the kibosh on the appointment because he and Office of Public Liaison director Justin Clark thought that Andrew “subverts the chain of command,” the website reported.

The sources also claim Andrew had other workplace issues that Kelly and Clark weren’t happy about.

Kelly yanked Andrew’s blue staff pass about two weeks ago, revoking his West Wing privileges, and he now only has a green pass, which means he can’t enter the West Wing unescorted.

Andrew, whose mother, Donna Hanover, split with Giuliani in 2002, has spoken fondly of the president, who helped repair the rift between father and son after Andrew’s parents split.

The pair also frequently hit the links together at Trump’s golf courses.

“The president has been there for me, for the good times, but more importantly through the bad. That’s just the kind of man he is. I’m grateful that he’s always been willing to give me his advice on personal matters and I consider him to be my good friend and even a father figure. His family is my family,” Andrew told Axios.

The website said it was unclear if Trump knew that Andrew had not been promoted.

The elder Giuliani, now working as Trump’s lawyer, has emerged as the president’s most zealous defender on TV and in the media, and a reliable attack dog against special counsel Robert Mueller.