Skip to main content

Hashing the UserName Field

note

This functionality is supported in the UI-based replication model of the three-model package.

To replicate PII data of self-registered Experience Cloud users, please follow the next steps:

  1. Configure the User object in the package settings and add the protected fields that should be replicated.

    note

    If you need to replicate 'username', use the fixed function and add some unique email type value, for example: unique_email@unique.com. The email field on the User object is not supported for hashing because it is used in Salesforce flows.

    SettingsAdd PII Fields

    note

    If you hash the UserName field on the User object, only one user can be created at the same time. It is related to the hashing trigger logic. The trigger populates the fixed value for the UserName field at the start and upon the synchronization with the InCountry platform, the value is changed to unhashed. This field is unique and only one record with the same UserName can exist at a time in Salesforce.

  2. A user flow of Experience Cloud self-registration requires the creation of Contact/Account (Person or business) records. It is common to replicate PII data from these objects as a part of the process, so you will need to configure them as well (PII fields, triggers etc.).

  3. To allow self-registration, please set up the Experience Cloud site. For the details, please see the Experience Cloud Salesforce guide at Setting up Salesforce Experience Cloud.

Adding the country field when using the record policy

You can use the object or record PII policy for the User object. If you use record policy you should add a country field to the Community Registration form:

  1. Create a new Field Set with your Country field.

    Creating a new Field Set

  2. Go to Сommunity builder.

    Go to Community builder

  3. Select the Register page.

    Register

  4. Populate API name of the Field Set as the Extra Fields FieldSet Name parameter for the Self Registration component.

    Populating API name of the Field Set

Once these steps are complete, the country field will be added to the self-registration form.