Configuring JSON attribute mapping
Add the JSON attribute mapping type with sub-objects (the JSON attribute mapping field) that allow you to map individual fields.
About this task
If a source attribute doesn’t have a value, the corresponding field is omitted.
Use JSON attribute mappings rather than constructed attribute mappings. |
Steps
-
To create an attribute map, run
dsconfig
with thecreate-attribute-map
option.Example:
The following example creates an attribute map titled
PingDirectory_to_PingOne_User_Map
.dsconfig create-attribute-map --map-name PingDirectory_to_PingOne_User_Map
-
To create the attribute mapping, run
dsconfig
with thecreate-attribute-mapping
option.Example:
The following example creates the attribute mapping to
PingDirectory_to_PingOne_User_Map
.dsconfig create-attribute-mapping \ --map-name PingDirectory_to_PingOne_User_Map \ --mapping-name name \ --type json
-
To map JSON attributes, run
dsconfig
with thecreate-json-attribute-mapping-field
option.Example:
The following example creates the JSON attribute mapping field
formatted
from thecn
attribute.dsconfig create-json-attribute-mapping-field \ --map-name PingDirectory_to_PingOne_User_Map \ --mapping-name name \ --field-name formatted \ --set from-attribute:cn \ --set json-type:string
The following example creates the JSON attribute mapping field
given
from thegivenName
attribute.dsconfig create-json-attribute-mapping-field \ --map-name PingDirectory_to_PingOne_User_Map \ --mapping-name name \ --field-name given \ --set from-attribute:givenName \ --set json-type:string
The following example creates the JSON attribute mapping field
family
from thesn
attribute.dsconfig create-json-attribute-mapping-field \ --map-name PingDirectory_to_PingOne_User_Map \ --mapping-name name \ --field-name family \ --set from-attribute:sn \ --set json-type:string