Questions asked by thienqhhttps://answers.axonivy.com/questions/asked-by/796/thienqh/?type=rssQuestions asked by <a href="/users/796/thienqh" >thienqh</a>enTue, 25 Apr 2017 23:47:53 -0400How to set information for logon IUser without permanently store to system?https://answers.axonivy.com/questions/2597/how-to-set-information-for-logon-iuser-without-permanently-store-to-system<p>Hi,</p> <p>I would like to implement a function to allow all user to share 1 common account for authenticating. That mean a user will have a token, storing his information such as Full Name, Email Address, etc. and he will use this token to login with the common account</p> <pre><code>IUser user = Ivy.session().getSecurityContext().findUser(COMMON_ACCOUNT); </code></pre> <p>To specify the information of logon user, I will use information from token.</p> <pre><code>user.setFullName(token.getFullName()); user.setEmailAddress(token.getEmailAddress()); </code></pre> <p>I only want these information temporary store in the session, and would be wiped out after user logout. But, by calling these IUser APIs, these information are persisted to system. Is there any good way to do that? Thanks</p>thienqhTue, 25 Apr 2017 23:47:53 -0400https://answers.axonivy.com/questions/2597/how-to-set-information-for-logon-iuser-without-permanently-store-to-systemauthenticationuser