SetMiddlewareDbUser Method
- Last UpdatedNov 06, 2025
- 1 minute read
The SetMiddlewareDbUser() method sets the db_status mw_db_user field used by audit trails based on the current database connection.
Parameters
- sessionId
Required. Holds the session ID and thus the user who is making this request.
The db_status mw_db_user value allows the audit trail code to distinguish between MES users and external users. It is called when the background service starts up to set this value for future comparisons. If the database login used by the Middleware is changed at any time, then this method needs to be called (or, alternatively, the background service can be restarted).