The CSV file connector often serves when importing users, either for initial provisioning or for ongoing updates. When used continuously in production, a CSV file serves as a change log, often containing only user records that changed.
The following example shows an excerpt of the provisioner configuration.
The default connector-jar location is openidm/connectors.
Therefore the connectorHostRef must point to
"#LOCAL".
{
"connectorRef": {
"connectorHostRef": "#LOCAL",
"connectorName": "org.forgerock.openicf.csvfile.CSVFileConnector",
"bundleName":
"org.forgerock.openicf.connectors.csvfile-connector",
"bundleVersion": ""
}
}The following excerpt shows required configuration properties.
{
"configurationProperties": {
"filePath": "data/hr.csv",
"uniqueAttribute": "uid"
}
}The CSV file connector also supports a number of optional configuration properties, in addition to the required properties.
- encoding (optional)
-
Default:
"utf-8" - fieldDelimiter (optional)
-
Default:
"," - filePath (required)
-
References the CSV file containing account entries
- multivalueDelimiter (optional)
-
Used with multi-valued attributes. Default:
";" - passwordAttribute (optional)
-
Attribute containing the password. Use when password-based authentication is required.
- uniqueAttribute (required)
-
Primary key used for the CSV file
- usingMultivalue (optional)
-
Whether attributes can have multiple values. Default:
false

