Discovery Scan - Database scan find xxx accounts, but only xx identities being displayed
Symptom
Privilege Cloud Database Discovery finds many accounts. However, we only see much smaller number in the discovered accounts page.
Environment
Privilege Cloud Discovery (New) Discovery (New) Discovery Scans
Cause
This is expected behavior if you have multiple databases on the same server.
Resolution
If you have multiple databases with same user on one server, these accounts are consolidated because they represent a single SQL Server login that has access across multiple databases. Because it is one underlying identity, seeing them grouped together is expected behavior.
SQL Server logins exist strictly at the server instance level rather than within individual databases, meaning a single login uses one password across the entire server regardless of how many databases it can access. Because of that the scan does not return a value "database" and the account appears only once, the "connectedDatabase" value attached to a discovered account reflects the connection to the database used to scan the account. If this single server login is onboarded into a vault multiple times under separate database objects, any automated password rotation performed on one object will update the actual password on the SQL Server, instantly rendering the stored credentials in all other vault entries stale. This desynchronization inevitably leads to failed connection attempts, making it essential to onboard discovered accounts strictly as single server-level entities.