PingDirectory

Creating a consent definition and localization

Create and update a consent definition and localization.

Steps

  • Create a consent definition using dsconfig create-consent-definition.

    Example:

    $ bin/dsconfig create-consent-definition \
      --definition-name email_newsletter \
      --set "display-name:Email newsletter"
  • Create a localization for the consent definition using dsconfig create-consent-definition-localization.

    Example:

    $ bin/dsconfig create-consent-definition-localization \
      --definition-name email_newsletter \
      --localization-name en-US \
      --set version:1.0 \
      --set "data-text:Your email address" \
      --set "purpose-text:To receive newsletter updates"
  • Update a localization and the version using dsconfig set-consent-definition-localization-prop and set version.

    Example:

    The following example updates a localization and its version.

    $ bin/dsconfig set-consent-definition-localization-prop \
      --definition-name email_newsletter \
      --localization-name en-US \
      --set version:1.1 \
      --set "data-text:Your preferred email address"