User Name in Report with Windows Authentication

Hi, I need to print the Name of the user logged in with Windows Authentication. Example: 1. One user posted an Invoice; his/her User ID was inserted in the Sales Shipment Header table. 2. Another user is printing this Invoice and the Name of the first user is supposed to be printed. How can I do this? Thanks Best Regards

The system function USERID and the function ShortUserID in Codeunit 418 Login Management can be of use to you.

I can get user id this way, but I need user name.

Hello, You could try filtering the Windows Object table to ID=USERID and get the name of the user.

See this topic:,name,id,get