Issue Description

When identities do not contain an IdentifierNamePart, an error occurs when attempting to sync users or groups in SharePoint, Active Directory or Azure Active Directory. This will occur on users or groups created without an ObjectSID or SamAccountName.

Error Message

The following error is displayed in the hostserver log file: "Error","General","0","ErrorMessage","WriteGroupSyncInstructionAsync","0 ADProvider Error message:  InstructionWriteError, SyncKeyHash : -5355469742702873509, SyncKeyValue: 9dc6cac9-981d-49a5-b44d-8ce0d44c90c4, Name: , Exception: System.ArgumentException: IdentifierNamePart at SourceCode.Sync.Storage.Sql.Repositories.ProviderRepository.EnsureIdentity(ICollection`1 identities, IdentityInstruction instruction) at SourceCode.Sync.Storage.Sql.Repositories.ProviderRepository.d__6.MoveNext()”.


  1. Ensure you have K2 Five (5.2) installed.
  2. Download the K2 Five (5.2) FP15 from K2 Partner and Customer Portal.
  3. Install the K2 Five (5.2) FP15 to apply the fix.