Scrivio Interview library
LeadershipPrincipal6 min read · updated 12 November 2026

After several acquisitions your company has five customer account systems, each with its own login and user database. Customers want one account. How would you plan customer identity consolidation over several years?

I would pick one customer identity platform with OIDC as the standard protocol for every product, then design explicit linking and merging rules before moving anyone. Users move gradually, mostly on login, while the old logins keep working behind the scenes. Consent, privacy and regional data rules are settled per merged account, and login success, support contacts and fraud are measured throughout so we can slow down or stop.

Why this question is asked

Customer identity consolidation after acquisitions is one of those programmes that looks like plumbing and turns out to be a product, legal and fraud problem at the same time. A wrong merge exposes one customer's data to another, a forced migration loses customers, and a slow one keeps five password databases alive for years. Interviewers ask senior engineers this question to hear how they sequence the work and where they see risk. In this answer, we will walk through choosing the target platform, the linking rules, the migration approach, the consent and data questions, and the measures that tell us whether it is working.

1Starting From the Current Picture

Before choosing anything, we need an inventory. For each of the five systems we record how many active customers it has (for example, logged in within the last 12 months), how passwords are stored, which identifiers it uses (email, phone, customer number), whether emails are verified, which regions the customers live in, and which products depend on it.

This inventory usually changes the plan. Typically one or two systems hold most active customers, one holds old accounts that barely log in, and at least one stores passwords badly. The numbers decide the order of migration later, and the password formats decide whether we can import hashes or must migrate on login.

Example inventory of the five systems
SystemActive customersPassword storageIdentifier
Brand A (original)4.0 millionbcryptverified email
Brand B1.5 millionPBKDF2email, partly unverified
Brand C600,000unsalted SHA-1username
Brand D300,000external provider alreadyemail
Brand E80,000bcryptphone number
The real numbers decide what moves first and how.

2Choosing the Target Platform and Protocol

The target is one customer identity platform, bought or built, that every product uses through OIDC. OIDC, OpenID Connect, is a login protocol on top of OAuth 2.0: each product redirects to the platform, the customer logs in there, and the product receives a signed ID token. It works for web applications, mobile apps and APIs, and every major framework, including Spring Security's oauth2Login(), supports it.

The choice of platform is a buy-or-build decision. A commercial customer identity service gives us MFA, passkeys, bot protection and hash import from day one, at a per-user cost that matters at 6 million users. Running an open-source server such as Keycloak is cheaper per user but needs a team that operates it at high availability. What I would not do is pick one of the five existing systems and grow it into the platform, because it carries one brand's assumptions into all the others.

3Linking and Merging Rules Come First

The hardest part is deciding when two accounts belong to the same person. The same email in brand A and brand B is a strong signal, but only if both emails were verified; otherwise an attacker could register the victim's email in the weaker system and inherit the merged account. So the first rule is that we never merge automatically on an unverified identifier.

When the signal is strong, we still let the customer confirm: after logging in, they see that an account with the same email exists in another brand and prove they own it by logging into it or clicking a verification link. When data conflicts, such as two different addresses or phone numbers, we keep both as separate profile entries per brand rather than choosing one silently. Accounts that look like duplicates but cannot be proven stay separate, and support gets a tool to merge them after checks.

Step throughDeciding whether two accounts can be linked
  1. Same identifier in two systems?
    YesCheck whether both are verifiedNoKeep separate accounts
  2. Both verified?
    YesOffer linking to the customerNoAsk for verification first
  3. Customer proves ownership of both?
    YesLink into one identity, keep per-brand profilesNoKeep separate, allow support merge later

3 steps in order. Play them, or step through them one at a time.

4Migrating Gradually While Old Logins Keep Working

We move one system at a time, starting with a medium-sized one to learn, not the biggest. For a system whose hashes the platform can import, we bulk-import accounts and switch that product to OIDC. For a system with weak or unsupported hashes, we migrate on login: the platform receives the password, checks it against the old system through a connector, and stores a modern hash of its own.

During the transition the customer should not notice anything except a new-looking login page. The old login URLs redirect to the platform, mobile apps get an update with a grace period, and refresh tokens from the old system are honoured until they expire. We publish a timeline per brand, and after most active users have moved we set a deadline for the rest, followed by a forced reset on next login and the deletion of the old password store.

5Consent, Privacy and Regional Rules

Merging accounts can change how data is used. A customer agreed to brand C's privacy terms, not to sharing their history with brand A. So linking needs fresh consent for any new sharing, recorded with the version of the terms, and marketing preferences stay per brand unless the customer changes them.

Regional rules matter too. If some customers must have their data stored in the EU, the platform needs regional storage or separate tenants, and a merged account must not move data across regions without a legal basis. Deletion requests must reach every linked profile. Legal and privacy colleagues should sign off the linking rules before the first merge, not after.

6Measuring Whether It Works

We set a baseline before migration for login success rate, support contacts about login per thousand logins, account takeover reports, and sign-up conversion. During each wave we watch the same numbers per brand. A drop of a few points in login success or a jump in support calls is a reason to pause the wave and fix the page or the email, not a reason to push harder.

Fraud deserves its own watch, because migrations are attractive to attackers: phishing emails that copy our migration announcement, and attempts to link accounts the attacker does not own. We prepare responses for both before the first announcement.

7Follow-up questions

How long would you expect such a programme to take?

With five systems and several million customers, two to three years is realistic: a few months to choose and set up the platform and agree the rules, then waves of three to six months per system, and a tail for inactive accounts. The order and the deadlines matter more than the total.

What if two acquired brands must stay visibly separate?

One identity platform can still serve them. The login pages can be branded per product, and the customer can keep separate accounts if they choose not to link. Consolidation is about one platform and one set of rules, not necessarily one visible account for everyone on day one.

Who should own the programme?

A small central identity team with a product owner, because the decisions are as much about customer experience and legal rules as about code. Each brand's teams own their product's integration and get a shared library and a clear deadline.

8Conclusion

In this answer, we planned a multi-year customer identity consolidation: an inventory first, one platform with OIDC as the target, strict linking rules that never merge on unverified identifiers, gradual migration with bulk import or on-login migration depending on hash formats, fresh consent and regional data handling for merged accounts, and measures of login success, support load and fraud that decide the pace.

What to say in the interviewAbout 80 seconds aloud

Open with

I would start with an inventory of the five systems: active users, how passwords are stored, which identifiers are used and verified, and which regions customers are in.

Then, if they want more

Then I would pick one customer identity platform, bought or self-run, with OIDC as the standard for every product, rather than growing one of the existing systems.

Before moving anyone I would agree the linking rules with product and legal: we never merge on an unverified identifier, the customer proves ownership of both accounts, conflicting data stays as per-brand profile entries, and support gets a careful manual merge tool. Migration would go one system at a time, starting with a medium one.

Where the platform can import the hashes, I bulk-import; where it cannot, I migrate on login through a connector to the old system. Old login URLs redirect, mobile apps get a grace period, and after a deadline the remaining inactive accounts get a forced reset and the old store is deleted.

Linking needs fresh consent for any new data sharing, regional storage rules must be respected, and deletion requests must reach every linked profile. Throughout, I would measure login success, support contacts and account takeover per brand against a baseline, and pause a wave when those numbers move the wrong way.

About this answer

Last updated
12 November 2026
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the documentation below. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Official documentation
Spring Security reference
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "After several acquisitions your company has five customer account systems, each with its...": https://scrivio-interview-library.netlify.app/spring-boot/authentication/c08cf1d18f/