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
dsconfigwith thecreate-attribute-mapoption.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
dsconfigwith thecreate-attribute-mappingoption.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
dsconfigwith thecreate-json-attribute-mapping-fieldoption.Example:
The following example creates the JSON attribute mapping field
formattedfrom thecnattribute.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:stringThe following example creates the JSON attribute mapping field
givenfrom thegivenNameattribute.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:stringThe following example creates the JSON attribute mapping field
familyfrom thesnattribute.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