Url PII Category Type

Adam Gatt 35 Reputation points
2025-10-15T05:24:09.0433333+00:00

Hello

We've noticed that if both Email and Url are included within the piiCategories array, the email address is successfully being redacted, but the mailto: hyperlink is still visible, so the email address can still be seen on the redacted document if hovering over it.

Azure AI Language
Azure AI Language
An Azure service that provides natural language capabilities including sentiment analysis, entity extraction, and automated question answering.
{count} votes

1 answer

Sort by: Most helpful
  1. SRILAKSHMI C 8,620 Reputation points Microsoft External Staff Moderator
    2025-10-15T08:09:51.9533333+00:00

    Hello Adam Gatt,

    Welcome to Microsoft Q&A and thank you for reaching out.

    You’re correct when both Email and Url are included in the piiCategories array, the visible email text is redacted, but the underlying mailto: hyperlink can still expose the email address when hovering. This occurs because the current redaction process primarily targets visible content rather than embedded hyperlink metadata.

    Here are some recommendations to address this:

    Ensure your redaction setup targets not only the visible email addresses but also any associated hyperlinks. Some configurations or additional flags may be required to remove hyperlinks entirely alongside the PII.

    Confirm that your piiCategories array is correctly configured. Review the documentation for any specific steps or settings that help completely remove hyperlinks associated with redacted PII.

    As a workaround, consider sanitizing or removing hyperlinks from the document before applying PII redaction. This helps ensure both the visible email text and mailto: links are removed.

    We recommend logging this scenario as a product improvement request. Future updates may enhance redaction capabilities to remove hyperlink metadata along with visible PII.

    Please refer this Conversational PII General Availability

    Learn about Conversational PII

    List of PII entities supported

    I Hope this helps. Do let me know if you have any further queries.

    Thank you!

    0 comments No comments

Your answer

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