Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

"System.Customer.UserImportCsvDelimiter" – Optional attribute.  Used to override the default CSV delimiter (',') with another char. (e.g. '|' for CCL. String used as Regex).  Because attributes are stored as a string, only put the character itself in the Value, not the single quotes.

"System.Customer.UserImportOrgProfileIndexesUserImportProfileTranslations" – Optional attribute.  Stores the mapping for user OrgProfile Indexes to be used by the user importer. If not set, assumes default values. Default first index for OrgProfileFields, start at [11] (e.g. key[11]: EmployeeID, value[12]: 1234; key[13]: Vessel, value[14]: Boaty McBoatFace; etc...).  Value is the index for that field (zero indexed).  (e.g. EmployeeID=12,Employee Status=14,Division=16,Vessel=18,Role=20)"System.Customer.UserImportProfileIndexes" – Optional attribute.  Stores  – Optional attribute.  Stores the mapping for user Profile Indexes to be used by the user importer. If this is not set, assume default values names for DB keys (see below ) . Value separator is ':' or '=' (e.g. FirstName=0,EmailAddress=1,LastName=4,OrgLoginId=8)  Value is the index for that field (zero indexed).  The for defaults key names).  The key/value pairs need to adhere to strict naming (Attribute keys are string constants, if they don't match, importer will fail).  For example: First and Last Name cannot be in the same column. All keys must follow db table column names.  The order does not matter, as the indexing is built dynamically.


// Generic User Import File Field Names (keys for dictionary)
private const string DeactivateUserKey = "Deactivate";
private const string OrgPathKey = "OrgPath";
private const string OrgLoginKey = "OrgLoginID";
private const string LoginKey = "LoginID";   //This can be UserName or EmailAddress
private const string PasswordKey = "Password";
private const string FirstNameKey = "FirstName";
private const string LastNameKey = "LastName";
private const string EmailAddressKey = "EmailAddress";
private const string ContactEmailKey = "ContactEmail";
private const string CanViewReportsKey = "CanViewReports";
private const string ForcePasswordChangeKey = "ForcePasswordChange";

Example of a configured org:

Image RemovedImage Added

Example CSV:

Default CSV Format:

...