certain users can only be deleted with erase: false
See original GitHub issueDescription
I was purging a few thousand users an appbridge left behind, all with { "erase": true }
, but got {"errcode":"M_UNKNOWN","error":"No row found (profiles)"}
for a few dozen of them.
Without erase: true
, I could successfully deactivate them.
Steps to reproduce
- Try to delete users with erase: true
- Observe failure
- Try to delete same users without erase: true
- Observe success
Version information
- Homeserver: synapse @ helsinki-systems.de
- Version:
{"server_version":"1.36.0","python_version":"3.8.9"}
- Install method: NixOS module
- Platform: NixOS 21.05
Issue Analytics
- State:
- Created 2 years ago
- Comments:7 (4 by maintainers)
Top Results From Across the Web
Delete, switch, or add users - Android Help - Google Support
Open the device's Settings app. · Tap System And then Multiple users. If you can't find this setting, try searching your Settings app...
Read more >Why do users erase all the password when they hit one wrong ...
I think that in some cases the password is deleted as a whole because it's selected (usually shown as inverted white text on...
Read more >Apple ID username or password is "incorrect" while trying to ...
Same problem here. I just erased the disk and tried instaling from the recovery partition, and it prompts for my Apple ID &...
Read more >Remove-ADUser (ActiveDirectory) - Microsoft Learn
The Remove-ADUser cmdlet removes an Active Directory user. The Identity parameter specifies the Active Directory user to remove. You can identify a user...
Read more >Your right to get your data deleted - ICO
The right to get your data deleted is also known as the 'right to erasure'. You can ask an organisation that holds data...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If you try to deactivate a user with
{ "erase": true }
. Synapse try to unset avatar_url and displayname in profile table. If your user has no profile, it goes wrong. One solution is thatset_avatar_url
andset_displayname
or theDeactivateAccountHandler
have to catch this exception.Not sure. I think in my case it might have been matrix-appservice-irc somehow screwing up? Although the users not having displaynames would also explain issues I was seeing when using it, at the time. Namely, those (bridged) users being displayed with their matrix ID(?) instead of a proper name.