Collecting personal information from users
Minimise the personal information you collect from users - and make sure youâre only collecting personal information when itâs a proportionate way of solving the problem youâre trying to solve.
Talk to your data protection expert or legal adviser to make sure what youâre planning to do is proportionate in the circumstances.
Make it as easy as possible for users to understand how youâll use any personal information you do collect.
If your service uses cookies or similar technologies to store information on a userâs device, you must follow the guidance about using cookies.
Do not collect information you do not need
The first thing to do is remove any questions that you do not need to ask. As well as minimising the personal information youâre collecting, that will make your service simpler to use.
Make sure you do not accidentally collect personal information by setting up your digital analytics tools correctly, and avoid putting personally identifiable information .
Do not store information any longer than you need to
You do not always need to store personal information at all. For example, letâs say you need to know if someone is getting a particular benefit so you can tell whether theyâre eligible to use your service.
You may be able to use an application programming interface (API) or so you can just record whether they were eligible or not. And avoid storing the raw personal information they supplied (for example, a scan of the benefit letter that proved their eligibility).
Do not store personal information you do collect for longer than you need to given the purpose you collected it for. This will reduce opportunities for attackers to exploit security vulnerabilities in your service.
Be clear about your legal basis for collecting information
The Data Protection Act 2018 is the UKâs implementation of the General Data Protection Regulation (GDPR). These rules state that you need to be clear about your legal basis for collecting personal information.
Getting consent from the user is one basis.
But if the information youâre collecting is an essential part of providing a public service, think carefully about whether it could be better to rely on a different basis, for example, the âpublic taskâ basis.
For example if youâre running a government service that involves issuing an official document in someoneâs name, itâs probably not meaningful to ask for consent to collect their name. Because itâs not possible to provide the service without collecting that information.
Aside from consent, the are:
- âpublic taskâ - you need to collect or process the information to carry out a task in the public interest, or for an official function
- âcontractâ - you need to collect or process the information to fulfil a contract youâve entered into with the user - or because they have asked you to do something before entering into a contract (for example, provide a quote)
- âlegal obligationâ - you need to collect or process the information to comply with the law (this does not include contractual obligations)
- âlegitimate interestsâ - you need to collect or process the information to protect your interests, or those of a third party (and itâs reasonable to do so when balanced against the userâs interests)
- âvital interestsâ - you need to collect or process the information to protect someoneâs life
If youâre a public body you cannot rely on âlegitimate interestsâ for personal information youâre collecting or processing as part of a public task - only for things that are outside the scope of a public task.
Your data protection expert or legal adviser will be able to advise you what legal basis to rely on. Learn how to identify relevant to your service.
How to ask for consent
If you are relying on consent as the basis for collecting and processing personal information, it has to be meaningful consent. If a user refuses their consent, they must still be able to use the service.
Consent means the user has to explicitly agree to you using their information in a specific way, not just failing to say they disagree. Ask a direct question rather than relying on the user ticking or unticking a check box.
Make it clear what the user is agreeing to. Itâs not consent if the user does not understand what theyâre consenting to.
And be equally clear about what the user should do if they want to withdraw their consent.
For example if you wanted consent to send emails that are not directly related to providing the service, you might:
- ask a direct question like âCan we send you emails about [X subject]?â
- tell the user how often you usually send the emails, so they can make an informed decision
- tell the user that they can stop the emails at any time, with details of how to do it

Consent must be specific. If youâre asking users to consent to different things, ask for consent to each thing in a separate question.
Tell users what information youâre collecting and what youâll do with it
Use plain language to explain what personal information youâre collecting and what youâll do with it.
Put things in terms that will be familiar to your users. For example, you may need to explain things in a different way if your service is aimed at children.
If youâre doing something that has an especially significant consequence for the user, or itâs something that the user might not expect to happen, do not rely on them reading the privacy notice to find out about it.
For example, if youâre collecting information thatâs going to be put on a public register, tell the user in the main flow of the service.
Privacy notices
Create a privacy notice thatâs specific to the service. In an online service, the privacy notice should be available to the user at any point, via a âprivacyâ link in the footer. Do not bury it in a terms and conditions page. Serve the privacy notice as part of the service, not as a page on °Ç¸çłÔšĎ.
Privacy notices and other âlegalâ content must be written in plain English and to °Ç¸çłÔšĎ style, just like any other content.
Explain, clearly and concisely:
- step by step, what youâll do with the personal information once youâve collected it
- why youâre collecting their personal information
- which of the legal bases youâre using for collecting and processing personal information
- how long youâll keep the personal information - or, if thereâs no set period, how youâll decide how long to keep it
If youâre collecting and storing personal information on the basis of a legitimate interest, youâll need to explain how you balanced those interests against the userâs interests.
In the privacy notice, youâll also need to:
- say who the âdata controllerâ for the service is (usually your department or agency)
- explain in what circumstances youâll share the information outside your organisation, and who with (including any âdata processorsâ - organisations processing personal information on your behalf)
- provide contact details for any data processors who will be processing personal information on your behalf
If the personal information will be transferred outside the UK as part of the processing, make that clear. And say what youâre doing to make sure the personal information gets the same level of protection as it would within the UK.
If the service uses an automated decision making process (for example, a computer algorithm), explain clearly how it works.
The Digital Marketplace has .
This is not necessarily a complete list of what should go into a privacy notice. Check the privacy notice with your organisationâs data protection expert or legal adviser.
Personal information charters
Do not go into detail about the standards your organisation follows when dealing with personal information in the privacy notice - link to your organisationâs official personal information charter instead.
The personal information charter should include information on how to get in touch with your Data Protection Officer.
It should also explain usersâ rights - including their rights if they want to see personal information youâre holding about them.
Or if they want you to erase or restrict processing of personal information youâre holding about them.
The Cabinet Office has an example of a clearly written personal information charter.
Especially sensitive personal information
There may be additional things to consider if youâre collecting especially sensitive types of personal information. For example personal information about children, or information relating to ethnicity, health, genetics or biometrics.
Check with your organisationâs data protection expert or legal adviser.
Updates to this page
-
Adding explicit guidance about excluding personally identifiable information from page titles and H1s.
-
Integrated guidance about understanding business objectives and user needs, understanding cyber security obligations, and sourcing a threat assessment.
-
Updated reference to EEA legislation.
-
Guidance first published