I'm trying to narrow down some potential issues in Maximo. Can Python help me get all queries certain users run while they are logged in? If Python can do this can someone please provide an example I can work with?
The direct, simple answer to your question is, No.
If you don't want to log SQL for all users, as you would get with @JPTremblay's excellent answer, then you should investigate the Configure Custom Logging action of the Logging application. In the associated dialog, on the Thread Logger tab, you should be able to configure UI logging for your particular user, and add the SQL logger in the Thread Logger Details.
Can I get with a python script what queries users run while logged into Maximo?