Code Fix: An error occurs when searching for a user and specifying a manager who does not exist
KB002289
PRODUCT
Issue Description
When using the User Manager (UMUser) SmartObject's Get Users method to search for a user in Active Directory, specifying a Manager name in the properties results in an Object Reference error logged in the Active Directory User Manager (ADUM) log file if the manager does not exist in Active Directory. The error message should state the manager could not be found.
Error Message
The error message displayed in the ADUM log file is similar to the following:
"Error", "FindSecurityUsersWithDefault", "Object reference not set to an instance of an object.", " at ADUM.K2UserManager2.EscapeSearchFilter(String filter) at ADUM.K2UserManager2.FindSecurityUsersWithDefault(String Group, String Name, String Description, String Email, String Manager, String size, String domainLDAP, String upn, String uOrgUnit, String DisplayName)"
Resolution
- Ensure you have K2 4.7 installed.
- Download and Install the K2 4.7 March 2018 Cumulative Update from K2 Partner and Customer Portal.
- Get the K2 4.7 March 2018 Cumulative Update FP2 from Regional Support.
- Install the K2 4.7 March 2018 Cumulative Update FP2 to apply the fix.
- The correct error will now be visible in the ADUM log file with the following message:
The distinguished name property for the manager ‘{0}’ could not be found.