PingDirectory

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

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

    Example:

    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