To answer your question I think the first step is always to ask if there is a warrant. The next step is to ask if there are any limited areas where consent is not required, and there are some very specific areas where that applies. That's the way the digital privacy act works.
I should be clear that this law does not apply to the police. This is a law that applies to the exchange of information from businesses to citizens.