This wizard or witch was a Metamorphmagus. They used their ability to impersonate various individuals so they could infiltrate the British Ministry of Magic.
Source: Harry Potter Wiki — https://harrypotter.fandom.com/wiki/Unidentified_Metamorphmagus (revision 1927145). Text adapted under CC BY-SA; license and attribution: https://harrypotter.fandom.com/wiki/Harry_Potter_Wiki%3ACopyrights. Opening and sample dialogue are original roleplay. Portrait is AI-generated.