If a source attribute doesn't have a value, the corresponding field is omitted.

Note:

Use JSON attribute mappings rather than constructed attribute mappings.

  1. To create an attribute map, run dsconfig with the create-attribute-map option.

    The following example creates an attribute map titled PingDirectory_to_PingOne_User_Map.

    dsconfig create-attribute-map 
        --map-name PingDirectory_to_PingOne_User_Map
  2. To create the attribute mapping, run dsconfig with the create-attribute-mapping option.

    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
  3. To map JSON attributes, run dsconfig with the create-json-attribute-mapping-field option.

    The following example creates the JSON attribute mapping field formatted from the cn 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 the givenName 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 the sn 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