What happens during security vetting and why did Peter Mandelson fail his?
Almost all officials working in Foreign Office HQ undergo process before gaining access to top secret material

TL;DR
- Officials in the Foreign Office HQ require security vetting, such as developed vetting (DV), for access to top-secret material.
- The vetting process is conducted by United Kingdom Security Vetting (UKSV), an agency within the Cabinet Office, not MI6.
- The DV process involves questionnaires, checks against security systems, and an extensive interview covering personal history and associations.
- Peter Mandelson was denied DV clearance by UKSV, but the Foreign Office granted him the necessary security clearance for the US ambassador role.
- Reasons for Mandelson's failure in the UKSV process have not been publicly disclosed.
- The Foreign Office also considered an additional clearance, DV+STRAP, for even more sensitive intelligence material, but it's unclear if Mandelson received it.