Repository navigation
Conversation
Adds DELETE /api/v1/users/:userID (administrators only). It reuses the
existing account deletion logic, generalised from DeleteCurrentUser to
DeleteUser{UserID}. Returns 404 for unknown users.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds DELETE /api/v1/users/:userID (administrators only). It reuses the existing account deletion logic, generalised from DeleteCurrentUser to DeleteUser{UserID}. Returns 404 for unknown users.
Issue:
https://feedback.fider.io/posts/181/user-email-in-api-v1-users-options-to-delete-block-user-account
As we want to make everything absolutely gdpr compatible we need to be able to delete an user via the API. (By hand is no option). I would be happy to see this being merged soon. Please take a look at the open question regarding the "self deletion"
cmd.DeleteCurrentUseris generalised tocmd.DeleteUser{UserID}; the settings "delete my account" flow passes the current user's IDOpen question
Currently an admin could delete themself. Should there be a "block"?
Checklist