I need to get the current user’s credentials ( user id & password ) and pare it to the custom user id field and password field from a suitelet. Is there a way to do this?
Appreciate all your help!
I need to get the current user’s credentials ( user id & password ) and pare it to the custom user id field and password field from a suitelet. Is there a way to do this?
Appreciate all your help!
Share Improve this question asked Sep 11, 2019 at 11:43 tpn1023tpn1023 131 silver badge3 bronze badges 2- 2 Victor C, gave the correct answer. Also, there is absolutely never a reason why you should try to capture user passwords. Even if you have good intentions, gathering them creates a major security hole. – w3bguy Commented Sep 11, 2019 at 14:24
- Thank you. The reason why im doing this is whenever a record has been change or edited, the user will need to enter his or her credentials before it gets save. – tpn1023 Commented Sep 11, 2019 at 14:33
1 Answer
Reset to default 5You can get the current user's id (email) with nlapiGetContext().getUser() in 1.0 or runtime.getCurrentUser() in 2.0. However you cannot get the user's password for obvious security reasons.