If you see field "Login user" in yum history list command
bash-5.1$ yum history list
ID | Login user | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
40 | <admin1> | 2022-05-10 16:30 | Update | 1
39 | <admin1> | 2022-05-10 16:30 | Update | 2
38 | <qsecofr> | 2022-03-25 13:01 | I, U | 2
37 | <admin1> | 2022-03-25 12:59 | Update | 1
36 | <admin2> | 2022-03-25 12:59 | Update | 1
But you'd rather have a Command line in the listing
bash-5.1$ yum history list
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
40 | upgrade libopenssl1_1 | 2022-05-10 16:30 | Update | 1
39 | upgrade rpm | 2022-05-10 16:30 | Update | 2
38 | upgrade python2 | 2022-03-25 13:01 | I, U | 2
37 | upgrade tn5250 | 2022-03-25 12:59 | Update | 1
36 | upgrade yum-utils | 2022-03-25 12:59 | Update | 1