Yes, when you use the import contacts feature of Kentico, it will import them into the OM_Contact
table.
To create a new contact, you use the ContactInfo
and ContactInfoProvider
classes, not the UserInfo
class. Users and Contacts are two different things, however, they can be related. Below are some links to the API Examples:
https://docs.xperience.io/api10/on-line-marketing/contacts
If you want make sure you don't create a contact twice, then you will have to check that manually based on your rules. For instance:
var contact = ContactInfoProvider.GetContacts().WhereEquals("ContactEmail", inputEmail).And().WhereEquals("ContactFirstName", inputFirstName).And().WhereEquals("ContactLastName", inputLastName);
if (contact == null)
{
// create a new contact
}
else
{
// contact exists
}