What law? Can you provide the relevant act and section?
Of course I can...
NSW Law Enforcement (Powers and Responsibilities) Act 2002
Part 15 Safeguards relating to powers
Note. For other safeguards relating to seizure or confiscation of property by police, see Part 17.
For other requirements relating to personal searches, see Part 4.
201 Police powers to which this Part applies
(1)
This Part applies to the exercise of the following powers by police officers:
(a) a power to stop, search or arrest a person,
(b) a power to stop or search a vehicle, vessel or aircraft,
(c) a power to enter or search premises,
(d) a power to seize property,
(e) a power to require the disclosure of the identity of a person (including a power to require the removal of a face covering for identification purposes),
(f) a power to give or make a direction, requirement or request that a person is required to comply with by law,
(g) a power to establish a crime scene at premises (not being a public place).
This Part applies (subject to subsection (3)) to the exercise of any such power whether or not the power is conferred by this Act.
Note. This Part extends to special constables exercising any such police powers—see section 82L of the Police Act 1990. This Part also extends to recognised law enforcement officers (with modifications)—see clause 132B of the Police Regulation 2008.
(2) This Part does not apply to the exercise of any of the following powers of police officers:
(a) a power to enter or search a public place,
(b) a power conferred by a covert search warrant,
(c) a power to detain an intoxicated person under Part 16.
(3) This Part does not apply to the exercise of a power that is conferred by an Act or regulation specified in Schedule 1.
202 Police officers to provide information when exercising powers
(1)
A police officer who exercises a power to which this Part applies must provide the following to the person subject to the exercise of the power:
(a) evidence that the police officer is a police officer (unless the police officer is in uniform),
(b) the name of the police officer and his or her place of duty,
(c) the reason for the exercise of the power.
(2) A police officer must comply with this section:
(a) as soon as it is reasonably practicable to do so, or
(b) in the case of a direction, requirement or request to a single person—before giving or making the direction, requirement or request.
(3) A direction, requirement or request to a group of persons is not required to be repeated to each person in the group.
(4) If 2 or more police officers are exercising a power to which this Part applies, only one officer present is required to comply with this section.
(5) If a person subject to the exercise of a power to which this Part applies asks a police officer present for information as to the name of the police officer and his or her place of duty, the police officer must give to the person the information requested.
(6) A police officer who is exercising more than one power to which this Part applies on a single occasion and in relation to the same person is required to comply with subsection (1) (a) and (b) only once on that occasion.