All Products
Search
Document Center

Database Autonomy Service:Permissions

Last Updated:Mar 28, 2026

Database Autonomy Service (DAS) requires a dedicated database account with specific permissions to monitor and manage your self-managed databases. If the account lacks the minimum required permissions, the DAS connectivity test returns an insufficient permissions error.

Note

The following examples use das_test as the account name and password as the password. Replace these values with your own.

Self-managed MySQL databases

Run the following commands to create the account and grant the required permissions:

CREATE USER 'das_test'@'%' IDENTIFIED BY 'password';
GRANT SHOW DATABASES, PROCESS, REPLICATION SLAVE, REPLICATION CLIENT ON *.* TO 'das_test'@'%';
GRANT SELECT ON *.* TO 'das_test'@'%';

Self-managed PostgreSQL databases

Run the following commands to create the account and grant the required permissions:

CREATE USER das_test PASSWORD 'password';
GRANT SELECT ON ALL TABLES IN SCHEMA PUBLIC TO das_test;

To also collect slow query logs and SQL statements, grant superuser privileges:

-- Optional: required only for slow query log and SQL statement collection
ALTER USER das_test WITH SUPERUSER;

Self-managed MongoDB databases

Run the following commands to create the account and grant the required permissions.

Step 1: Create the user with required roles

use admin;
db.createUser({
  user: 'das_test',
  pwd: 'password',
  roles: [
    { role: 'readAnyDatabase', db: 'admin' },
    { role: 'clusterMonitor', db: 'admin' },
    { role: 'hostManager', db: 'admin' },
    { db: 'local', role: 'dbAdmin' },
    { db: 'config', role: 'dbAdmin' },
    { db: 'admin', role: 'dbAdminAnyDatabase' }
  ]
});

The following table describes the purpose of each role:

RoleDatabasePurpose
readAnyDatabaseadminRead data across all databases
clusterMonitoradminCollect cluster-level monitoring metrics
hostManageradminMonitor and manage the host
dbAdminlocalAccess replication and oplog metadata
dbAdminconfigAccess sharding configuration metadata
dbAdminAnyDatabaseadminAdminister all databases for monitoring

Step 2: Verify the connection

After creating the user, verify that DAS can connect by running the connectivity test in the DAS console. If the test returns an insufficient permissions error, confirm that all roles in Step 1 were granted successfully.