Is there a way to search for login entries without passwords?

A couple of years ago, I converted from LastPass to Bitwarden. I exported my passwords from that program and imported them into Bitwarden. But for whatever reason, it only imported the site names/URLs but not the actual passwords. I decided at the time (not sure why now) to just let it go and update the old passwords as I needed them.

Today I learned how to delete multiple login entries, so now I’d like to go through and purge all the login entries with no password, but I don’t know how to search for them.

Is there a way to do this?

If you are paying for premium, create a fake entry with no password and then use the “duplicate passwords report” to see what matches it.

1 Like

Unfortunately, I don’t have premium. Aside from this one thing, I just don’t need any of the features.

Thanks for the suggestion though.

There may be another workaround - though that would be back to deleting one entry at a time… When you turn on “Show quick copy actions on Vault” (Settings → Appearance") then the browser extension shows entries without a password greyed out on that quick copy button:

Further complication: there is no delete-function in the three-dot-menu. (but with one of the next updates of the browser extension, we should get that function: [PM-12030] - add "Edit" and "Delete" options to browser more items menu by jaasen-livefront · Pull Request #16764 · bitwarden/clients · GitHub)

1 Like

Well, yeah, it’s not exactly what I want, but it could be helpful. Thanks for pointing it out!

Did it import the usernames? You cannot search for empty passwords, but you can search for empty username fields. To do so, copy and paste the following expression into the Search box of a (non-mobile) Bitwarden app:

>-login.username:*

You also need to set your vault filters to show only Login items, or else the above search will also find all cards, identities, and secure notes (none of which contain usernames).

Using the Web Vault for this will allow you to quickly delete multiple items at once.

1 Like

Thanks for the suggestion but unfortunately it did import the usernames.

If you have a technical bent, you should be able to use the CLI together with something like the jq utility to find login items with empty password fields.

Or if you put a price on your own time, premium is only $10/yr and helps ensure that the developers keep getting paid to make the product better.

Hmm. Sometimes I do and sometimes I don’t. It’s been several decades since I did anything fancy with a CLI, but I’ll take a look at it.

Thanks for the suggestion.

Here’s a quick script for Windows PowerShell that might be helpful:

(.\bw list items | ConvertFrom-Json) | Where-Object { $_.type -eq 1 } | Select-Object -ExpandProperty login -Property name, id | Where-Object { $null -eq $_.password } | Sort-Object -Property name, username | Select-Object -Property name, username, id

This will produce a sorted list of all login items that have an empty password.

It should be possible to script something a little more complex, which uses bw delete to delete login items with empty passwords. Alternatively, you can use the “id” values (in the third column of the table printed by the expression given above) to search for the corresponding item in any Bitwarden app or browser extension. You can also paste a deep link of the following form (where “xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx” is the “id” value from the table) into the address bar of a browser tab that has a logged in Web Vault session:

https://vault.bitwarden.com/#/vault?itemId=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&action=edit

This will open the corresponding item to the Edit view, where you can delete the item using the  🗑  button.

Please believe me that, if I could afford to, I would, but I’m on a fixed income and I have nothing to spare.

Well, I downloaded the CLI and ran that script and it worked but just looking at it reminds me that my scripting skills is rudimentary at best.

Besides, this is not an urgent task. BW works fine and I’m just an individual using it for personal stuff. It’s not like it’s for a business or a job. So it has some extra logins in it. I don’t think it’s worth spending a lot of time on.

Thanks very much for your time though.

1 Like

There is one more thing you could try, if you have not added any credit card items, identity items, or passkeys to your Bitwarden vault since you set up your account. Basically, you could create a CSV export of your vault, use a spreadsheet app to find and remove unwanted entries in the CSV, then purge your vault contents and import the modified CSV file.

Bitwarden exports in the CSV format only contain Login items and Secure Note items, so this would not work if your vault contains any Identity or Card items (those items would be lost). Similarly, for Login items exported in CSV format, there are some limitations — for example, you would lose any stored passkeys and customized URI match detection settings, and all custom fields that are of the Hidden, Linked, or Checkbox type would be converted to basic Text type.

Unfortunately, I do keep cards in BW.