The only problem is that we don't know in which role.
"I don't think I'm allowed to say it but I'm going to be in the next Harry Potter film," Nighy says. "I won't say which character, but he's a goodie. I just got the gig."
It seems the actor most likely will be playing the character of Rufus Scrimgeour, though nothing is confirmed.