If in an organisation, the HR person has religious or gender discrimination, please give a template to complain against this person.
The answer depends on a number of factors, such as the policies of the organisation, your position in the hierarchy, and theirs, the reason for making the accusation, who the discrimination is against.
And crucially, what evidence you have to support your complaint.
I haven’t really got enough information to answer in full, so let me make a few suggestions.
If you have evidence (and I don’t mean subjective thinking or hearsay) of discrimination, then you may want to discuss the situation with your manager and ask their advice. Gather your evidence before you do so.
Or you may want to take it to the HR person’s manager. They may be the only person in HR, but they must report to someone.
If you are the person who has been discriminated against and the company has a grievance procedure, you might want to invoke that for your complaint. In that case the system that is in place for dealing with grievances will be used. Have a look at that before you do anything so that you understand what will happen.
It may be that the company has a disciplinary procedure they will want to use if they accept your complaint so have a look at that too.
Both procedures are likely to involve formal meetings between yourself and HR, and the HR manager and his department. Meetings will be minuted, you will probably be allowed to have a Union Representative or a colleague to accompany you.
These are serious, formal meetings and to start the ball rolling will have serious consequences. If you start this and lose, you will look like a troublemaker.
So be absolutely certain of your facts before you do anything. Gather evidence carefully and don’t accuse anyone of anything that can’t be substantiated.