Environment
- Cloudron Version: 9.1.3
- App: Traccar 6.12.2
- User Management: Enabled (Cloudron SSO)
Description
When a user logs in via Cloudron SSO, their administrative permissions within Traccar are automatically reverted to a standard "User" status. Even after manually elevating the user in the database (setting administrator = 1 and userlimit = -1 in the tc_users table), the changes are overwritten the moment the user authenticates via SSO or the app is restarted.
This creates a persistent "Write Access Denied" state for the primary administrator, preventing the management of devices, geofences, or server settings.
Steps to Reproduce
-
Install Traccar on Cloudron with User Management (SSO) enabled.
-
Login via SSO (Initial status is a standard user).
-
Manually elevate the user to admin in the Traccar UI.
-
Confirm Admin access is active in the Traccar UI (Settings and Server menus are visible).
-
Log out and log back in via Cloudron SSO, or restart the app.
-
The user's administrator status in tc_users is reverted to 0x00, and administrative access is lost.
SQL: SELECT email, administrator FROM tc_users WHERE email = '[redacted]';
Expected Behavior
The Cloudron SSO sync should respect existing administrator flags within the Traccar database.