-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete a user from the admin interface #393
Comments
It's tricky because it involves unsetting the user from many places and figuring out what is personal data and what's not. Here's some thoughts we've been working with in InvenioRDM (not all is relevant for this request): User deletionInitiator Conditions A user can be deleted if:
If the user own either communities or published records the initiator must first either 1) remove themselves (possible if there's multiple owners 2) transfer ownership or 3) delete the owned entities. User deletion request A new request type could be setup to deal with the account deletion, so that a user e.g. could request deletion of an account. The new request would essentially amount to either an ownership transfer or deletion of owned items. Requests, events and comments
Institutional accounts It should be possible to not activate the account deletion, as it has to be controlled from an external system. E.g. in an institutional context, the account deletion is on the identity provider, and not in InvenioRDM. The identity provider can the initiate the user deletion request. |
I found a delete_user api and attempted to call it myself but got the error, "AssertionError: Dependency rule tried to blank-out primary key column 'accounts_user_login_information.user_id' on instance '<LoginInformation at 0x7f0069e452e0>" Looks like the foreign key constraint isn't quite right perhaps? Given this issue and the error I encountered it appears delete_user isn't fully implemented yet, is that right? |
Is your feature request related to a problem? Please describe.
An administrator can delete a user account from the administration interface.
Describe the solution you'd like
Basically a new delete button on the admin interface.
The text was updated successfully, but these errors were encountered: