Sometimes, it's not always the obvious dark forces. It could be a corrupt Hogwarts professor or an alumnus who has gone astray. They see Hermione as a threat to their own plans for Hogwarts. Maybe they have some dark secrets related to the school that they don't want the heir to uncover. So, they try to undermine Hermione and Harry at every turn.
Often, it could be dark wizards or witches who are envious of Hermione's status as the heir. They might want to take over Hogwarts themselves or steal the power that comes with being the heir. For example, a powerful dark wizard who has been in hiding for years might emerge to challenge Hermione.
Another possible antagonist could be a power - hungry pure - blood family. They might see Harry as an impostor as the heir, believing that only a pure - blood should hold such a title. They would try to undermine Harry at every turn, spreading rumors and creating obstacles for him both in school and in the wizarding world.
Some pure - blood supremacists could also be antagonists. They may see Harry and Hermione, especially if Hermione is an heir as a Muggle - born, as a threat to their idea of a pure - blood - only wizarding society. They would do whatever it takes to stop them from rising to power and using the founders' legacy to promote equality and change in the wizarding world.
Another antagonist could be a dark wizard or witch who wants to use the power associated with the Founders' heir for evil. They might target Hermione to either force her to join them or to extract the power from her. This antagonist would likely be very powerful and have a network of minions to carry out their plans.
Hermione Granger could also be a possible Hogwarts heir. She is extremely intelligent and has a thirst for knowledge about Hogwarts' history and magic. Her Muggle - born status might seem to be a contradiction, but it could also be part of what makes her unique as the heir. She could bring new perspectives and use her vast knowledge to unlock secrets about the heir's role and the future of Hogwarts.
Draco Malfoy could be a likely antagonist. He might be jealous of the friendship or whatever relationship is developing between Fred and Hermione and try to cause trouble for them. Another could be some of the more strict professors who don't approve of their unorthodox ways of doing things.
The heir themselves would be a main character, of course. And Harry Potter might still play a role, either as a friend or a rival to the heir. Dumbledore could also be a major character, guiding or observing the heir's journey.
Obviously, Harry Potter himself would be the main character. Hermione and Ron would also be important as they are Harry's closest friends and would be involved in his journey as the heir.
Often, the goblins can be antagonists. If they have their own motives that conflict with Harry and Hermione's, like protecting a dark secret in the vaults or trying to take advantage of the situation for their own gain. Another possible antagonist could be a Death Eater who has infiltrated Gringotts to either steal something important or to ambush Harry and Hermione.
Often, it could be Death Eaters. They are the main villains in the Harry Potter series, so it makes sense for them to be antagonists in fanfiction where Harry and Hermione need to escape.
Well, it depends on the specific fanfiction. Some authors might make Harry the heir as part of a grand plot. For example, they could tie it to an ancient prophecy or a hidden power within the school. This can lead to new adventures and challenges for Harry, as he discovers his new role and the responsibilities that come with it.