Q: Is shaving off the beard permissible because one's job does not permit it? What should one do if in this situation?
A. The Hadeeth clearly states that there is no obedience to the creation if in it lies disobedience to the Creator. (Al Mu'jamul Kabeer V18 P177). You are being tested and if you pass this test there is unimaginable reward and benefit for you Inshaa Allah Ta'aala.
If the job does not allow you to keep a beard, you have no choice but to resign and seek another job, even if it pays less than the first. By respecting and fulfilling the law of Allah, Allah will compensate you in many ways Inshaa Allah.
Moulana Yusuf Laher