Hi Miguel,
This is achievable using the QINACTMSGQ system value and a relatively simple CL program.
Here is the documentation for the system value: https://www.ibm.com/docs/en/i/7.4.0?topic=values-inactive-job-time-out-message-queue-qinactmsgq
And here is an IBM KB article that includes a sample CL program: https://www.ibm.com/support/pages/using-system-inactivity-timer-disconnect-or-end-specific-jobs
You can configure your own logic in the program to give certain user profiles a longer timeout, or it could be based on group profile, or many other things.
Let me know if you need more info!