|
1 | | -# This is a sample configuration file for the csv connector type. |
2 | | -# |
3 | | -# CSV (Comma-Separated Values) is a plain-text spreadsheet format. |
4 | | -# The main function of this configuration file is to specify how column names |
5 | | -# in the spreadsheet are mapped to attribute names in the directory. |
6 | | -# |
7 | | -# The first line of a CSV file is assumed to be header row with column names. |
8 | | -# The column names in your spreadsheet can be in any order, and if there are |
9 | | -# fewer values in a row than there are in the header row, the attributes |
10 | | -# for the missing columns are given no value. |
11 | | -# |
12 | | -# This sample file contains all of the settable options for this format, |
13 | | -# with each set to its default value. If the defaults are fine for your |
14 | | -# application, you can use a copy of this file as-is, or you can omit the csv |
15 | | -# setting from the connectors in your main User Sync configuration file. |
| 1 | +# This is the configuration template for the CSV connector. |
| 2 | +# For more information, see https://adobe-apiplatform.github.io/user-sync.py/en/user-manual/sync_from_csv.html |
| 3 | + |
| 4 | +# --- Format Options --- |
| 5 | +# These options relate to the CSV file format |
| 6 | +# See https://adobe-apiplatform.github.io/user-sync.py/en/user-manual/sync_from_csv.html#format-options |
16 | 7 |
|
17 | | -# (optional) delimiter (no default value) |
18 | | -# The delimiter is the string that separates columns. Normally, |
19 | | -# this is detected automatically from the first line in the file. |
20 | | -# To set it to a specific value, uncomment this setting: |
21 | 8 | #delimiter: "," |
| 9 | +# string_encoding: utf-8 |
22 | 10 |
|
23 | | -# (optional) string_encoding (default value given below) |
24 | | -# string_encoding specifies the Unicode string encoding used in the CSV file. |
25 | | -# All values retrieved from the file are converted to Unicode before being |
26 | | -# sent to or compared with values on the Adobe side, to avoid encoding issues. |
27 | | -# The value must be a Python codec name or alias, such as 'latin1' or 'utf-8. |
28 | | -# See https://docs.python.org/2/library/codecs.html#standard-encodings for details. |
29 | | -#string_encoding: utf-8 |
| 11 | +# --- Column Mapping Options --- |
| 12 | +# These options let you control the column naming scheme of the CSV input file |
| 13 | +# See https://adobe-apiplatform.github.io/user-sync.py/en/user-manual/sync_from_csv.html#column-mapping-options |
30 | 14 |
|
31 | | -# (optional) email_column_name (default "email") |
32 | | -# The column name that contains the user's email address. |
33 | | -# Values in this column must be valid, unquoted email addresses. |
34 | | -# A value is required in this column for all users, regardless |
35 | | -# of their identity type. For Adobe ID users, all of the other |
36 | | -# column values are optional. For Enterprise and Federated ID |
37 | | -# users, all of the other column values are significant. |
38 | 15 | email_column_name: email |
39 | | - |
40 | | -# (optional) first_name_column_name (default "firstname") |
41 | | -# The column name that contains the user's first name (aka given name). |
42 | | -# Values in this column can be any string |
43 | 16 | first_name_column_name: firstname |
44 | | - |
45 | | -# (optional) last_name_column_name (default "lastname") |
46 | | -# The column name that contains the user's last name (aka surname). |
47 | | -# Values in this column can be any string |
48 | 17 | last_name_column_name: lastname |
49 | | - |
50 | | -# (optional) country_column_name (default "country") |
51 | | -# The column name that contains the user's home country. |
52 | | -# Values in this column must be an ISO-3166 two-letter country code. |
53 | 18 | country_column_name: country |
54 | | - |
55 | | -# (optional) groups_column_name (default "groups") |
56 | | -# The column name that contains the user's group memberships. |
57 | | -# Values in this column must be a comma-separated list of group names. |
58 | | -# NOTE: Since commas usually separate columns, be sure to surround the |
59 | | -# entire column value with double quotes, to prevent any embedded commas |
60 | | -# from being interpreted as column separators. |
61 | 19 | groups_column_name: groups |
62 | | - |
63 | | -# (optional) identity_type_column_name (default "type") |
64 | | -# The column name that contains the user's identity type. |
65 | | -# Values in this column must be adobeID, enterpriseID, or FederatedID. |
66 | 20 | identity_type_column_name: type |
67 | | - |
68 | | -# (optional) username_column_name (default "username") |
69 | | -# The column name that contains the user's username (for the Adobe side). |
70 | | -# Values in this column should not be specified unless the user is of type federatedID |
71 | | -# and the user's domain is configured for username-based federation. In all other |
72 | | -# cases, leave this column blank, and the email will be used for the username. |
73 | 21 | username_column_name: username |
74 | | - |
75 | | -# (optional) domain_column_name (default "domain") |
76 | | -# The column name that contains the user's domain. |
77 | | -# Values in this column should not be specified unless the user is of type federatedID, |
78 | | -# the user's domain is configured for username-based federation, and there is a value |
79 | | -# in the username field. If this field is left blank, the domain part of the email |
80 | | -# address will be used for the user's domain. |
81 | 22 | domain_column_name: domain |
0 commit comments