This article was created in response to a support issue logged with K2. The content may include typographical errors and may be revised at any time without notice This article is not considered official documentation for K2 software and is provided “as is” with no warranties.

Issue

The Identity property for the user and was not correctly populated and shows System Value > Current User is null.

Symptoms

  • The Identity property for the user and was not correctly populated.

    eg. SELECT [Property] FROM [K2].[Identity].[Identity] WHERE [Name] = 'DENALLIX\Bob' 

    <properties xmlns="http://schemas.k2.com/identity/customProperties.xsd">
       <item name="Name" value="" />
       <item name="Description" value="" />
       <item name="Email" value="" />
       <item name="Manager" value="" />
    </properties>


  • Executing UMUser "GetUserDetails" method returns incomplete information.
  • The user is valid and details pertaining to the user can be retrieved using the AD User SmartObject.
  • Turning on verbose ADUM logging shows that the user is being translated to a computer object which shares the same name. Instructions on how to enable this logging option can be found on this KB article: https://help.k2.com/kb001286

Troubleshooting Steps

  1. Stop the K2 blackpearl service.
  2. Make a backup of the K2 database.
  3. Update the RoleInit value in [HostServer].[SecurityLabel] where SecurityLabelName = K2 to include TranslateWithDirectoryServices=False;

    <roleprovider>

     <init>ADCache=0;LDAPPath=LDAP://DC=DENALLIX,DC=COM;
    TranslateWithDirectoryServices=False;...</init>
    ...

    </roleprovider>

  4. Start the K2 blackpearl service.

Incorrectly editing the K2 database can result in system instability or failure. Before making any database changes, it is strongly recommended to make a backup of your database. Database changes should only be performed by database administrators or users with sufficient knowledge and experience with SQL server to apply these changes correctly. If you need assistance with implementing these changes, please log a Support Ticket with K2 Product Support.

Also see https://www.k2.com/onlinehelp/k2blackpearl/devref/current/default.htm#Database_Reference.html