Forums
S3 Interfaces/Conversion
Translate USERNAME To A Login ID
Author
Messages
Garth Gerwing
Basic Member
Posts: 27
2/5/2013 4:13 PM
If anyone has some experience with this - would really appreciate some feedback.
We are on Lawson 9 - Windows Platform - Financials(AR)
In incidences where a given entry screen does not support inputting an overt Lawson "Operator" (AROPTR) - Lawson will write a windows-based ID to the USERNAME field(s). EXAMPLE: Payment Batch/Header - ARPYMNTHDR.OPR_CODE (NT00000023)
This appears to be a Lawson/Windows identifier - as in looking at tables in GEN (R_USER.USERNAME, QUEUEDJOB.USERNAME, USER_INFO.USERNAME, etc.) all reference this value.
I cannot, however, find any data (db tables) where I can rationalize this ID to a given user's login name. I want to be able to reference a table via this "USERNAME" to derive the user login ID. NOTE: I have seen some references to a GEN_DB table of "USER" - but it is either not resident on my platform, or I can't see it for some reason. Have also seen this USERNAME value reference as an "RMID" (Resource Management ID)
Appreciate your time in this matter.
Greg Moeller
Veteran Member
Posts: 1498
2/5/2013 4:29 PM
Does this help?
https://www.lawsonguru.co...ft/7374/Default.aspx
John Henley
Senior Member
Posts: 3348
2/5/2013 5:05 PM
https://www.lawsonguru.co...ldap-finding-userid/
https://www.lawsonguru.co...000044-in-dme-query/
https://www.lawsonguru.co...d-location-for-lsf9/
Marsha DeMaria
Basic Member
Posts: 6
12/2/2013 9:03 PM
900-GET-USER-DISPLAY-NAME can be used to translate the NT user id to the Lawson user id, such as converting NT00000012 to johndoe. You would need to move the NT id to the WS-USER-DBUIDKEY variable and then perform the call.
MOVE CRT-JOB-USER TO WS-USER-DBUIDKEY.
PERFORM 900-GET-USER-DISPLAY-NAME.
The result is WS-USER-DISPLAY-NAME.