https://www.legislation.gov.uk/ukpga/1984/60/contents
You can read the Police and Criminal Evidence Act 1984.
In Part 1 Section 2 Powers to Stop and Search it says the Police Officer should give name and police station to which they are attached.
2. Provisions relating to search under section 1 and other powers.
(1)A constable who detains a person or vehicle in the exercise—
(a)of the power conferred by section 1 above; or
(b)of any other power—
(i)to search a person without first arresting him; or
(ii)to search a vehicle without making an arrest,need not conduct a search if it appears to him subsequently—
(i)that no search is required; or
(ii)that a search is impracticable.
(2)If a constable contemplates a search, other than a search of an unattended vehicle, in the exercise—
(a)of the power conferred by section 1 above; or
(b)of any other power, except the power conferred by section 6 below and the power conferred by section 27(2) of the M2Aviation Security Act 1982—
(i)to search a person without first arresting him; or
(ii)to search a vehicle without making an arrest,it shall be his duty, subject to subsection (4) below, to take reasonable steps before he commences the search to bring to the attention of the appropriate person—
(i)if the constable is not in uniform, documentary evidence that he is a constable; and
(ii)whether he is in uniform or not, the matters specified in subsection (3) below;and the constable shall not commence the search until he has performed that duty.
(3)The matters referred to in subsection (2)(ii) above are—
(a)the constable’s name and the name of the police station to which he is attached;
(b)the object of the proposed search;
(c)the constable’s grounds for proposing to make it; and
(d)the effect of section 3(7) or (8) below, as may be appropriate.
The above is when you are detained by a police officer. I'll have a look for bodycam use.