Skip to main content
November 27, 2021
Question

Tool for detecting and removing duplicates? [Available in 8.10.18]

  • November 27, 2021
  • 179 replies
  • 15906 views

https://1password.community/discussion/comment/697252/#Comment_697252

I have several logins that somehow have been duplicated in 1Password 8. This may have happened in different times when I've attempted to migrate my 1Password 7 data to my 1Password.com account.

In any case, I have a load of duplicates in 1Password 8 and it would be very helpful if there were an efficient tool or feature to help me merge/dedupe these entries (and ideally test them to make sure that I'm preserving the correct credentials).

Any thoughts/ideas for how to handle this situation?


1Password Version: 1Password for Mac 8.5.0 80500017, on BETA channel
Extension Version: 2.1.4
OS Version: macOS 12.0.1 (21A559)

https://1password.community/discussion/comment/662923/#Comment_662923

179 replies

November 25, 2022

+1 for me too. I used to be a fervent supporter of 1Password (ever since 2006). I have to admit that I dread sorting out my some 3300 entries. I was used to a much responsive company/developer that could be entrusted with mac users passwords. Now... I have serious doubts. Please 1password developers, do something about the duplicate issue. It's important to mac, iPhone, iPad users. We don't need fancy stuff, just a password manager we can rely on.

November 29, 2022

This has become very noticeable after migrating to 1Password8:
* The lack of any duplicate detection
* The lack of merging multiple records for the same site that contain some unique information in the various instances
* The strange way that two identical records with identical passwords can have different ratings for the password strength

The last would seem to qualify as an actual bug.
The first two would seem to qualify as much-requested and very useful features

November 30, 2022

Can anybody comment about the "best" known workflow for doing this manually?

Export to this format: __________
Use this tool: ___________
Filter in Excel
Re-import

December 2, 2022

I created a https://www.dropbox.com/s/rel30i7g48fuhal/1pcsv.pl?dl=0 to process the exported CSV from 1Password to create a new CSV file sorted by duplicate count (in descending order so that the ones with duplicates appear above the ones without). You could then open this resultant CSV file in Numbers (or Excel, or similar) and then manually work your way down the list - searching for the given Title or Url and then examining (!) each entry to choose one to keep and then archive or delete the rest.
(! examine carefully because my code only looks at the first four fields: Title, Url, Username, and Password, it does NOT look at OTPAuth, Favorite, Archived, Tags, or Notes - so you might need to do some manual merging before archiving/deleting the redundant entries).

Save the script to your Downloads folder (e.g., ~/Downloads/1pecsv.pl), Export your 1Password data as CSV (e.g., ~/Downloads/1PasswordExport-1234858.csv) and you can then run it from the command line.

 cd ~/Downloads
 perl ./1pecsv.pl ./1PasswordExport-1234858.csv ./1pe.csv

In the end, you'd see:

 RESULTS IN: ./1pe.csv

If you then go to ~/Downloads in your Finder, you should be able to click on that file (1pe.csv), and it will open in whatever application you have associated with CSV files. From there, it's a manual back-and-forth between that file and 1Password.

Theoretically, one could modify the script to generate a unique listing, and then you could archive/delete everything you have in 1Password and Import the resultant CSV file - but I'm not willing to claim that would be safe.

If you don't have Perl installed on your computer you might have to download and install it - for that, I suggest you go through Google or whatever your web-browser-search-engine-of-choice is.

December 2, 2022

(NOTE: there was a typo in the previous posting - the original script is 1pcsv.pl not 1pecsv.pl - so the usage of the script has the wrong name in it, sorry)

Here's a https://www.dropbox.com/s/w2ljygjicaxoca1/1p2csv.pl?dl=0 that bases the duplications on the domain of the URL - i.e., it ignores:
* http:// vs https://
* http://www. at the beginning
* anything following the first '/' (after the http:// has been removed)

so things like (space added to prevent these as showing up as links):
* http:/ /http://www.gianteagle.com/pharmacy
* https:/ /http://www.gianteagle.com/pharmacy
* https:/ /http://www.gianteagle.com/Sign-In/?return=https%3A%2F%2Fwww.gianteagle.com%2F
* http:/ /http://www.gianteagle.com
* https:/ /gianteagle.com

Would all be treated as duplicates of one another for the "gianteagle.com" domain.

Not sure if this is better than the previous script or should be run before or after the previous script - but regardless, it provides another means of finding duplications that you might want to archive/delete.

Usage (after downloading the script and having your 1Password CSV exported data):

 `cd ~/Downloads`
 `perl ./1p2csv.pl ./1PasswordExport-1234858.csv ./1pe2.csv1

In the end, you'd see:

 `RESULTS IN: ./1pe2.csv`

Again, you can then load up the result file in Numbers (or Excel, etc.) to then manually process it, going back and forth between the spreadsheet and 1Password to archive/delete duplications.

Hope this helps (I'm still working through cleaning up my data)

December 4, 2022

Hi team 1password -

I find this unacceptable that you don't have this feature.

I finally upgraded from 1password 6 to improve my experience, and in the process of the upgrading multiple devices it created duplicates in a single vault. Thus I have a degraded experience.

This is making me reconsider whether I want to continue my subscription to 1password. Unfortunate as I was planning on buying my wife a subscription too so we can share.

Could we get a target quarter where this feature will be available?

1Password Employee
December 5, 2022

Hi @dwabyick

Welcome to the 1Password Support Community.

This post contains the latest information we have on this subject. I'm sorry to hear you ended up with duplicated items in your vault. There are a number of ways 1Password can help you identify and clean up items that are duplicated:

  • Watchtower's Reused Passwords checker
  • Sort options: sort by title to spot similarly named items (e.g. multiple "Google" items)
  • Creation and modification timestamps on item details

Please let us know if we can help you use any of these features. 😊

Ben

ctphoto
December 5, 2022

That is just a band-aide on the issue. How about you folks just fix it? You are programmers, right? You broke it, why should we have to fix it?

December 5, 2022

I was able to clean it up reasonably quickly (about 10 minutes), but I could imagine this being a lot worse for others. Ben - I know you're doing your best, and I imagine there are higher priority features out there, but I hope this does get resolved eventually.

December 5, 2022

I've already managed to clean up many of my duplications - but there's still more to go through.

Although only slightly on-topic, it would be nice to have a URL-checker built-in to find entries in 1Password for sites that no longer [seem to] exist - kind of like what watchtower does for identifying sites that have known password breaches. It would allow you to find, verify, and remove entries for old/dead sites and sites that no longer use accounts (I've come across several such sites where I used to have a login and where there no longer is a place to log in on them anymore). I'm spending a lot of time just trying to verify that these sites still exist to know how much effort to put into dealing with their duplications or weakness of passwords, etc.