Getting logged in username and password
ombacke
Member Posts: 44
Is there a way to get the user name and password of the currently logged in user in Navision code?
0
Comments
-
For the user name use the keyword USERID, and password..... no. It's possible to reset someone's password with sufficient permissions, but you cannot get to the passwords programatically.
Try this. Create a new form (you don't even have to save it for this example) and put a button on it. In the button's OnPush trigger, write MESSAGE(USERID);. Run the form and click the button. You can also get to the user name. Create a new global record type variable Called MyUser, and write the following code:MyUser.GET(USERID); MESSAGE(MyUser.Name); MESSAGE(MyUser.Password);
When you click the button now, you will see the user's name as entered in the Database Login window, and you will notice that the password shows up in the second message as blank.0 -
Well thank you... I guess for the password, I'll need to use another way.0
-
There is no other way. You cannot get to the password. Unless of course, you are a first class hacker, and we'd all be interested in how you did that
0 -
Note: I've never tried this:
http://www.mibuso.com/dlinfo.asp?FileID=172
Maybe Luc can shed some light.0 -
-
Why should it not work in 4.00? I tested it on MBS-Navision W1 4.0, and it still works.DenSter wrote:That doesn't work in 4.00 anymore though right?No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)0 -
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions

