When I first experienced harassment or, let's say, the military trying to have me declared mentally incompetent for complaining about its hostile sexualized behaviour, I filed a human rights complaint and went through the internal military procedures. That would be like filing a grievance. You have to write these documents in the specific way that they want them written, and challenge what happened to you.
I did that, and I also filed two complaints with the Canadian Human Rights Commission. One was based on gender discrimination. They were telling me that they wouldn't allow me to go through for testing to be a social work officer because they were saying that I wouldn't be able to pass it anyway. They were basically assuming that I'm dumb and can't do math, and I can.
Then I filed to try to protect myself, trying to encourage them to follow the law, assuming that there would be some sort of consequence for them if they retaliated against me. It didn't work.