Data transformation ideas around old/new user data
HI, we're migrating from username sign in, to okta that uses email as user id. we have an existing user info data with user id as username (xfsgsbss) but we would have a new data with user id as email(fdhsvbsjsbsjsh@email.com). I want to be able to join both old and new data and make sure the right attributes goes to them, but also create a dedup user (or unique user) so same user attributes with username will not be inflated by the same user attributes with email, basically not overcounting.
Any ideas or tips would help. Thank you
Best Answer
-
It's very unclear as to how you can map the old user id to the new user id based on the way you are describing it. I would suggest you upload a spreadsheet that has two columns, old user id and new user id that serves as a lookup table. You can then create an ETL that has 3 input datasets: old id table, new id table, and the lookup table spreadsheet. You can then perform a join from your old id table to your lookup table and then join this to your new id table. Finally, you can use the group by tile to eliminate duplicates by doing a count on your new id names.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0
Answers
-
You can use a formula tile to populate a new user id column in your old dataset by just appending the @email.com with a CONCAT formula:
CONCAT(`Old User Name`, '@email.com')
Then you can use that new field to join to your new dataset and get similar records.
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
@GrantSmith Thanks for the response
One thing I forgot to add is, there are some users with multiple username to their email, but after migration if a user has more than one username to their email, their usage will be aggregated to their email . so the above might not work in that case.
0 -
Does you old system have an email address associated with the usernames or do you only have the usernames?
How can you determine in the old system if a user has multiple usernames / accounts?
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
It's very unclear as to how you can map the old user id to the new user id based on the way you are describing it. I would suggest you upload a spreadsheet that has two columns, old user id and new user id that serves as a lookup table. You can then create an ETL that has 3 input datasets: old id table, new id table, and the lookup table spreadsheet. You can then perform a join from your old id table to your lookup table and then join this to your new id table. Finally, you can use the group by tile to eliminate duplicates by doing a count on your new id names.
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.0 -
I agree with Mark's solution, and would add that in your grouping, you need to be cognizant of any other attributes you are capturing. For example, if there are multiple user names associated with an email address, what is different between them? Are their position, department, manager, etc., included in with the user name data? Do you want to incorporate any of that or just take the new info from the email user name? If you are just needing to do simple mapping, Mark's solution will make it a piece of cake!
DataMaven
Breaking Down Silos - Building Bridges
**Say "Thanks" by clicking a reaction in the post that helped you.
**Please mark the post that solves your problem by clicking on "Accept as Solution"0 -
@Pellogat any chance you could show an example with your ideal inputs / outputs? Have any of the previous posters answered your question?
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 56 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive