If he was in uniform I don't believe there is any misconduct. They are only required to identify themselves when you can't see them, such as when they are entering your residence, or your back is turned.
This communication is not intended to create an attorney/client relationship. It is always recommended you consult an attorney in person to discuss your case. The Law Offices of Stage & Associates practices state-wide and represents homeowners and community associations. Please visit our website at www.stagelaw.com.