Help with editing savegame/Harrim quest flag

Despite of my efforts I’ve managed to screw up Harrim’s quest by not being nice enough to him, and it makes me really sad, because he just angrily send his clan away (I also kinda want a dwarf settlement in my kingdom).

Does anyone know the locations of flags that mellow him out, either in player.json or history ? I’ve figured out that in history file the flags HarrimQ1, HarrimQ2 and HarrimQ3 relate to his quests, but I’m not sure how to find a specific flag.