Tech Tip: How to Configure a Read-Only SQL/ODBC Account
PRODUCT: 4D | VERSION: 21 R | PLATFORM: Mac & Win
Published On: December 2, 2026
To allow an ODBC account to access 4D data without modifying it, configure SQL access rights using dedicated user groups.
- Create user groups
- LECTURE_SEULE
- LECTURE_ECRITURE
- Configure SQL access rights
- Restart and test
In Toolbox > Users and Groups, create two groups:
Assign the new ODBC account directly to LECTURE_SEULE and existing ODBC accounts to LECTURE_ECRITURE.
Note: Users must be assigned directly to the groups. Group nesting is not sufficient.
In Database Settings > SQL, assign:
Read only (data): LECTURE_SEULE
Read/Write: LECTURE_ECRITURE
Restart the database and test the ODBC account:
SELECT → should succeed.
UPDATE → should be rejected.