最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to get netsuite’s current user details using suitescript? - Stack Overflow

programmeradmin2浏览0评论

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
Add a ment  | 

1 Answer 1

Reset to default 5

You 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.

发布评论

评论列表(0)

  1. 暂无评论