KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
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.
  1. Create user groups

  2. In Toolbox > Users and Groups, create two groups:

    • LECTURE_SEULE

    • LECTURE_ECRITURE


    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.

  3. Configure SQL access rights

  4. In Database Settings > SQL, assign:

    Read only (data): LECTURE_SEULE

    Read/Write: LECTURE_ECRITURE

  5. Restart and test

  6. Restart the database and test the ODBC account:

    SELECT → should succeed.

    UPDATE → should be rejected.