The school has a graduation dress code.
Either abide by it or don’t.
Go ahead and hang your glass slipper on this one.
There is no possible academic justification for the school telling the student what kind of facial hair to have or not have. It is an abuse of power, pure and simple.