Deal with company name change - Fluid Topics

Profile mappers use cases

Category
Technical Notes
Audience
public
Version
Latest

In this scenario, the Acme company decides to become the Example company.

During the initial SSO configuration, administrators used the email address of employees as their ID instead of a stable ID, such as an employee number.

Following its rebranding, the company changes the email addresses of all employees from @acme.com to @example.com.

To that end, the administrators of Acme create the following script:

if(user.id.endsWith('@example.com')){
    user.id = user.id.replace('@example.com','@acme.com');
}

With this script, when employees connect, their Fluid Topics account automatically updates with the new address.