Question
ThingworxStorage the logger user different than Resources CurrentSessionInfo GetCurrentUser
In ThingworxStorage logs the logger user is different than the user returne by Resources["CurrentSessionInfo"].GetCurrentUser();
The service I have try to set a property to the user:
logger.debug(l"Input->PlantUPL-> " + PlantUPL);
var user = (UserName!=null) ? UserName : Resources["CurrentSessionInfo"].GetCurrentUser();
logger.debug(l "User-> " + user);
Users[UserName].LastPlantUPL = PlantUPL;
The Script Log shows this error:
Line 494541: 2019-01-20 16:39:28.331+0000 [L: DEBUG] [O: S.c.t.d.e.DSLScript] [I: ] [U: U529679] [S: ] [T: http-nio-8080-exec-24] User-> u106949
Line 494542: 2019-01-20 16:39:28.332+0000 [L: ERROR] [O: S.c.t.d.e.DSLProcessor] [I: ] [U: U529679] [S: ] [T: http-nio-8080-exec-24] User does not have visibility permission for u106949
Somehow user U529679 is in the logs but u106949 is the current user in the Resource.

