Reading your text, I expect that you want to read information (e.g. language, groups) of the current user and store it in a variable, for working with it.
To find this info you need to log in to https://www.smart-hmi.com/ In "Documentation > WebIQ Developer Manuals > Web IQ Visual Reference" you find the documenation with examples. The example below prints some info of the current user to the console.
// get json with data of current user
const currentUser = shmi.visuals.session.UserManager.getCurrentUser();
// log info to console
console.log(`Current user is '${currentUser.name}' with configured locale '${currentUser.locale}'.`)
console.log("groups of user:")
currentUser.groupList.forEach(grpName => {
console.log(grpName)
})
... View more