+ Add post
Hi all,
How can I get logged in user id in client script?
Thanks
Like
Hello Toan,
Thank you for your question!
Could you please clarify what exactly do you mean by "logged in user id" and describe your business task in detail?
Thank you in advance!
Olga.
Hello Toan, To get the logged-in user's Id in client page, var userId = Terrasoft.SysValue.CURRENT_USER_CONTACT.value;
This gives you the Id value of the logged-in user. I think this is what you are asking for. Regards, Adharsh S
Adharsh,
Thank you very much
Olga Avis,
Sometime, I want to use the logged user id as a param in my own service. For example, compare the selected user (in a edit page) with the logged user.
Toan Mai,
Thank you for the clarification! As we can see, the answer has been provided by Adharsh. Please, let us know in case any additional information is required.
Best regards,