MongoDB 4.4+ with Atlas support
Automatically discover and classify PII fields in your MongoDB collections. Our AI analyzes document schemas and sample data to identify personal information like emails, phone numbers, Aadhaar numbers, and nested PII — helping you build your DPDP data map.
Create a read-only user with minimal privileges:
// Connect to your MongoDB instance
use admin
// Create a read-only user for Privacy Labs
db.createUser({
user: "privacylabs_scanner",
pwd: "your_secure_password",
roles: [
{ role: "read", db: "your_database" }
]
})
// For scanning multiple databases:
db.createUser({
user: "privacylabs_scanner",
pwd: "your_secure_password",
roles: [
{ role: "readAnyDatabase", db: "admin" }
]
})In your admin dashboard, go to Data Discovery → Integrations and click Add Connection.
Choose MongoDB from the list of supported databases.
Paste your MongoDB connection string. For Atlas, copy it from the "Connect" dialog.
# MongoDB Atlas format mongodb+srv://privacylabs_scanner:<password>@cluster0.xxxxx.mongodb.net/your_database # Self-hosted format mongodb://privacylabs_scanner:<password>@your-server.com:27017/your_database?ssl=true
Click Test Connection to verify credentials. If successful, click Save.
Go to Data Discovery → Run Discovery, select your MongoDB connection, and start the scan.
MongoDB-specific: We handle schema-less documents by analyzing multiple samples to build a comprehensive field map. Nested objects and arrays are fully traversed to detect deeply embedded PII.
Connection strings encrypted with AES-256 at rest.
All connections use TLS encryption in transit.
Works with MongoDB Atlas IP Access Lists.
All scan activities are logged for compliance.
Connect in under 5 minutes and discover PII fields automatically.
Book a Demo