---
title: "Scan a database for likely-PII columns"
description: ""
canonical: "https://pgbeam.com/docs/api/databases/scanDatabaseForPii"
last-updated: "2026-09-14T19:37:21.000Z"
---

# Scan a database for likely-PII columns

> 

URL: https://pgbeam.com/docs/api/databases/scanDatabaseForPii

Connects to the upstream database read-only, inspects information_schema and samples column values against PII heuristics, and returns ranked masking suggestions. Suggestions are advisory — the operator reviews them and applies the ones they want into a policy profile's masking rules. Nothing is auto-applied.