I have the “Can manage” permission for the collection, and I can successfully delete Bitwarden items manually. However, I’m unable to delete them via the CLI using bw delete item; it returns a “permission denied” error, even though the BW_SESSION seems to be valid. I’m able to retrieve the item ID via the CLI, but deletion doesn’t work.
Before October 2024, I was able to delete items both via the CLI and manually. This issue started when we started using “Can manage” permission for deletion.
- name: Delete the old Bitwarden item
command: bw delete item {{ existing_entry[0].id }}
environment:
BW_SESSION: “{{ bw_session }}”
delegate_to: localhost
when: existing_entry | length > 0
ignore_errors: true