The legal basis for sharing personal data with Police Scotland and the Scottish Government (as set out below under ‘Data Sharing’) is for the purposes of a task carried out in the public interest in terms of Article 6(1)(e) UK GDPR. For the processing of any special category data in these circumstances the condition for processing is in terms of Article 9(2)(g) UK GDPR and paragraph 6(1)(b) of part 2 to schedule 1 of the DPA.