The question is inspired by the current situation in Myanmar, but since at the time of writing what will happen remains to be seen and obviously people on here can't predict the future, but surely similar situations have occurred in the past.
So my question is, what happens to the ordinary "rank-and-file" members of law enforcement or military if there is a major regime change (or even a revolution) as a result of popular dissent as is currently going on in Myanmar? Do they just continue work to as usual, just treating it as a change of boss / orders?
e.g. if Aung San Suu Kyi is restored to power, it seems almost certain that (considering she is the democratically elected ruler) people using force in opposition will be seen to be "in the wrong" and disloyal to the country and its people, at best on a par with those who stormed the Capitol building recently in the US.
It seems strange to imagine that officers who were loyal to the outgoing regime, and who opposed protests and demonstrations, in some cases with violence, maybe even with lethal force, would just continue with their jobs, but now working for the people they previously opposed. On the other hand, while I imagine the upper echelons of the police & army (e.g. generals, commissioners, etc.) can be replaced relatively easily with people loyal to the new regime, you can't exactly quickly recruit and train an entirely new force, and it would seem a tad unfair to fire or prosecute low-ranking officers who were only following orders.
So do they just return to their beat or whatever with the mentality, "Well it's just that our orders have changed"? I can't really imagine them engendering much trust amongst the populace considering the crack-down they participated in is probably very unpopular with the people they are now serving, and considered wrong given the new regime's ideology.