In the older version of Ignition, I can simply get info about the user who is login into the designer by accessing "session.auth.user.userName". But in 8.1.31 this property is always null in the designer environment.
Also calling system.perspective.getSessionInfo() returns the username for the designer unauthenticated!!!
We are using it to track the hours we spend on projects.
It is easy to replicate. I noticed this problem in 8.1.31 but it may happen in the previous version as well. But let's target 8.1.32. if you open Designer and go to Perspective session all properties of "session.auth.user" are set to null. In the older version, these properties are set correctly for the user who logs into the designer session.
So to get a username and roles I decided to call System.perspective.getSessionInfo() and match session.id with the return array but again this function also returns username unauthenticated!!!
Is there a mismatch between who you allow to use designer and the projects user source/identity provider? Under gateway config->security->general
is this a different user source/Identity provider than what the project has? I wonder if that would have something to do with it. You hypothetically could be logging into designer as user who does not exist in the project's user source/identity provider and maybe that's why the null?
Did you make any other changes in the gateway or project properties besides upgrading?
Edit: Ignore this. I have this sort of setup, one user source for designer and another for the project itself and my username is still coming through correctly.