Purview eDiscovery is not working correctly using “Sensitive Type” KeyQL: (Microsoft BUG)

Sergio Londono 886 Reputation points
2025-06-06T19:27:40.6333333+00:00

Hello Team,

I am running in eDiscovery using KeyQL or Query builder data at REST in EXO (Stale emails) that contain sensitive Info like:

Canada Social Insurance number.

 We need to delete all the emails in our internal employees that contain “Canada Social Insurance number” before Jan 01, 2020

The query run correctly, however, the output statistics pull out other type of sensitive Info, this means that the eDiscovery is not discovering what is was requested in the KeyQL query.

Canada Social Insurance Number   a2f29c85-ecb8-4514-a610-364790c0773e
User's image

User's image

KeyQL Query:

(SensitiveType:a2f29c85-ecb8-4514-a610-364790c0773e|1..|85..100) AND Date>2025-01-01 Please see

The output of the Query:

User's image

In addition with this problem, Why we can't delete the stale emails using as condition the "Sensitive info", so, If I need to delete the emails before 2020 with "Canada Social Insurance number", how can I do it? It will be almost impossible if the cybersecurity team needs to do with the end-user email by email?
User's image

Best regards,

Microsoft Security | Microsoft Purview
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 119.5K Reputation points MVP Volunteer Moderator
    2025-06-07T12:27:33.08+00:00

    There are some known issues with the UI experience, in particular when using KeyQL queries. Let's just say that Microsoft didn't properly test the new experience before releasing it (and removing the old one). In effect, you are better off using PowerShell and the New-ComplianceSearch cmdlet. And you will end up using PowerShell anyway, as the new experience does not support purging items, as you've noted above. So back to New-ComplianceSearchAction.

    The Graph API method should also work, as the issues are only with the UI, afaik.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.