In this section—
Subsection (3) applies to a person who, in the course of the person's official duties (anywhere in the United Kingdom), has or has had custody of or access to an official record or the information contained in an official record.
The person commits an offence if the person—
Subsection (3) is subject to the terms of an order under subsection (6).
In proceedings for an offence under subsection (3), it is a defence for the accused to show that the disclosure was made—
The Scottish Ministers may by order provide for the disclosure of relevant information derived from an official record to be excepted from the provisions of subsection (3) in cases or classes of cases specified in the order.
A person guilty of an offence under subsection (3) is liable on summary conviction to a fine not exceeding level 4 on the standard scale.
A person commits an offence if the person obtains relevant information from an official record by means of fraud, dishonesty or bribery.
A person guilty of an offence under subsection (8) is liable on summary conviction to a fine not exceeding level 5 on the standard scale, or to imprisonment for a term not exceeding 6 months, or to both.
This section does not apply where the acts or omissions constituting the offence mentioned in subsection (1)(b) occurred when the person was under 12 years of age.