Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: How to "merge" users? #398

Closed
mattes3 opened this issue Mar 23, 2024 · 3 comments
Closed

Q: How to "merge" users? #398

mattes3 opened this issue Mar 23, 2024 · 3 comments

Comments

@mattes3
Copy link

mattes3 commented Mar 23, 2024

I have several SaaS products where a user may sign up. I want to send identify calls to Parcelvoy when they do that.

Now it might occur that one user signs up for two SaaS products, using the same email address. In this case, I want them to be the same user in Parcelvoy. This is a bit difficult because the user has a different unique ID in the two products.

What would be a good practice here? Should I just use the email address as an id? However, the user might change it. 🤔 I'm a bit stuck here.

@pushchris
Copy link
Contributor

Currently don't have a great solution for this problem. We have an aliasing operation, but you would need to know the previous external ID in order to do it, and in general all it does is modify the external ID to be a new value. If you are actively using multiple identifiers in multiple places you would still need something shared in order to know to keep them linked or how to link them. I suppose you would want to use the email for that?

Looking at how other products do it, taking Mixpanel for example you start with a single initial ID that you can then alias additional IDs to and they are all stored together as additional ways to get data associated to that single user. It has the same problem though of needing to know the initial ID, so you'd need to use their email since that appears to be the only piece of information that is the same across them.

Will look into what is would take to create a hash map of identifiers for users so you could reference multiple, but don't have a solution currently.

@mattes3
Copy link
Author

mattes3 commented Mar 23, 2024

Oh, I see! In this case, a persistent hash map of identifiers would already be a good product in itself. Should be interesting to any SaaS owner who has more than one product.

@mattes3
Copy link
Author

mattes3 commented Apr 17, 2024

I am now using a hash of the initial email the user signed up with. When they change their email, the hash won't be changed. This should mostly do the trick.

@mattes3 mattes3 closed this as completed Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants