Hey there, do you know how I can stop access to sy...
# replication-troubleshooting
j
Hey there, do you know how I can stop access to system tables in the Airbyte DB2 adapter? Our DB2 user only needs access to certain tables and shouldn't be able to see the system tables. Any help you can offer would be much appreciated. Thanks for your suggestions!
n
Hi, Jakub! Do you mean limit access to specific tables in a connector, in this case the IBM db2 one? You can limit access to specific tables in a connector by creating a dedicated read-only user with access to the relevant tables. For example, for the Postgres source connector, you can run the following commands against your database:
Copy code
sql
CREATE USER 'airbyte'@'%' IDENTIFIED BY 'your_password_here';
GRANT SELECT ON <database name>.* TO 'airbyte'@'%';
You can also limit this grant down to specific tables instead of the whole database. For more information, please refer to the Postgres source connector setup guide.