Salamu aleykum, I had a conversation with a friend about being in law enforcement and he told me two things:
-
It is haram to be an official in a western country, since there is no shariah. Therefore it is kuffr to give an oath to protect a manmade law.
-
It is haram to be in law enforcement because sometimes you have to do things that are against our deen, for example there was an incident where the prayer for eid was canceled due to covid a few years ago.
I heard from other people, that it is not haram since you can specialize in drug crimes and etc.
These two arguments are some arguments that I hear about the topic and I have not been able to find a clear answer.