question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add endpoint for deleting a user's account

See original GitHub issue

Like the title suggests, it would be nice to give users the ability to delete their accounts.

It could be done with minor changes to the UserView. Just replace RetrieveUpdateAPIView with RetrieveUpdateDestroyAPIView, I think.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:3
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
joaoponceleaocommented, May 25, 2016

Deactivation and account deletion will always be very specific to each project. Its not as simple as disabling or deleting a user. So I can understand that djoser would not offer it. However, in the same way that djoser offers activation with optional email confirmation required, perhaps it could implement a deactivation endpoint and view with email confirmation required as well (I imagine this would be a standard requirement across all projects. Obviously, with a caveat in the docs that all actions on user-specific objects, etc, have to be handled on a custom basis by the developer.

I still doubt that this will be implemented, as it would have to be, by definition, an incomplete endpoint - with users asking for all sorts of functionality after this. And you can already get this basic functionality with djoser’s existing password reset views. There are more pressing issues at the moment. JWT / OAuth, etc…

As a side-note, the best thing about djoser, is the lack of dependencies. I would be very concerned that by implementing user management, it would turn into a dependency nightmare like the django-rest-auth / allauth combination.

6reactions
nicodvcommented, May 25, 2016

djoser is trying to provide a RESTish interface for authentication, not user management.

If djoser offers registration and activation, then it should offer deactivation, no?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Delete user API endpoint - SecureAuth Documentation
Use this guide to to delete an end user from a Microsoft SQL Server data store through the SecureAuth Identity Management API. To...
Read more >
REST API - DELETE User - Documentation – Commvault
This operation deletes a user and transfers the ownership of entities such as alerts, scheduled policies, and workflows from the deleted ...
Read more >
POST: User Delete - Braze
Use this endpoint to delete any user profile by specifying a known user identifier. Up to 50 external_ids , user_aliases , or braze_ids...
Read more >
Delete Account User by Email – Act-On Developer Network
This endpoint allows you to delete a user by their email address. Parameters. Name, Parameter Type, Allow Multiple, Required/ Optional, Data Type ...
Read more >
REST API endpoint to delete customer account - Jira - Atlassian
Problem Definition: There are endpoints to add user, remove user and all in Jira service desk but there is no endpoint to delete...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found