How to Get the Username of Current User Opening An Excel File?

Hello, sometimes a write to an Excel file in a server failed because another user is using it,
and I need to get who is the user opening that Excel file.

I read How can I know the user that is running some process? and
VS 2010 [RESOLVED] How to get username who currently has excel file open?-VBForums (found the second one to be likely to help, but I don’t know how to apply this in UiPath).

Can someone suggest what to try?

Check task manager, you can find the user who is accessing the excel.

Hello @shankm, currently I am incapable of testing it with other users in the network,
but when I run multiple Excel from my PC, it only shows me one EXCEL.exe process.
When it is run by another user in the network, will it show the user running the Excel file I want?