Skip to content

Reset a User Password (Without Application Access)

1. Log in to SQL Server

  • Open SQL Server Management Studio (SSMS).
  • Connect to the SQL Server instance hosting your CostOS databases.

2. Identify the Master Database

Locate the Master Database used by CostOS (for example: CostOS_Master). This database contains all user accounts and authentication data.


3. Run the SQL Update Command

Execute the following SQL statement in a new query window on the Master Database:

UPDATE [{MASTER_DATABASE_NAME}].[dbo].[PRINCIPALS] SET AUTHTYPE = 'LOCAL', ENBL = 1, HASHKEY = '5C3B68-43-501A-4B-73', PASSWORD = '5C3B68-43-501A-4B-73' WHERE PRINCIPALID = '{RESET_USER_USERNAME}';

Replace the placeholders:

  • {MASTER_DATABASE_NAME} → your actual CostOS master database name (e.g., CostOS_Master)
  • {RESET_USER_USERNAME} → the username of the account you want to reset (e.g., admin)

4. Default Password

After running the query, the selected user’s password is reset to:

🔑 New Password: admin

You can now log in to CostOS using the reset credentials.


5. Post-Reset Recommendations

  1. Log in to CostOS with the updated account.
  2. Immediately change the password to a secure one through the application interface.
  3. Review user roles and permissions to confirm proper access.
  4. Optionally, re-enable Single Sign-On (SSO) or LDAP if previously configured.

Example

If your Master Database name is CostOS_Master and you want to reset the user supervisor, run:

UPDATE [CostOS_Master].[dbo].[PRINCIPALS] SET AUTHTYPE = 'LOCAL', ENBL = 1, HASHKEY = '5C3B68-43-501A-4B-73', PASSWORD = '5C3B68-43-501A-4B-73' WHERE PRINCIPALID = 'supervisor';

After execution, you can log in to CostOS as supervisor using password admin.


Security Notes

  • Only authorized administrators should perform this operation.
  • Do not share or reuse the default password admin.
  • If your organization uses LDAP, Kerberos, or SSO, the AUTHTYPE='LOCAL' setting temporarily switches the user to local authentication. Once logged in, you can reconfigure the authentication mode through the application.