dscl diff <path> <path> [keys...]

Compares the data from path1 and path2 looking at the specified keys (or all if no keys are specified)

Arguments

NameDescription
pathPath to the record
pathPath to the record
keysDirectory Service record attribute type