K2 SmartForms giving users incorrect usernames
KBS100022
PRODUCTIssue
When using the K2 Context Logged in Username to populate the username on a form, this returns an incorrect username for some users, other users works fine.
Symptoms
Smarforms returns incorrect logged in user for some users.Resolution
This issue could be caused by the following:
- Something changed on Active Directory, i.e. an Active Directory migration was done, user details changed or Active Directory specific permissions for the K2 service account had changed.
- A feature that was shipped for 4.7 which had been implemented on a test environment and had been confirmed to have resolved the majority of this issue can be found below.
- This feature changes the way that K2 queries results from Active Directory. From the [HostServer].[SecurityLabel] Table in SQL the RoleInt was altered and the "TranslateWithDirectoryServices=False;" had been added.
- An expression might be in use on the user context system name in SmartForms which could possibly be cutting off the characters in a way that the expression would not return any data anymore. Therefore the recommendation would be to validate your expression carefully and reconstruct the expression to resolve the issue if neccessary.