When attempting to assign a Managed By user to a user in a multiple domain environment, an error occurs. This occurs in the scenario where the K2 Server user is part of the first domain and the Managed By user is being assigned to a user in the second domain.
The error message is similar to the following:
An Active Directory error has occurred.
LDAP Message LDAP_CONSTRAINT_VIOLATION
Description There was a constrain violation
When ManagedBy is being set in the code, it uses the Principal Domain Context of the K2 Server Service account and this prevented using the users from a different domain.