Allowing User to delete their accounts

1
Hello, I want to enable a feature where the users can delete their accounts (without admin’s permission). So far, I created all the microflows and it seems to run perfectly until the final step where I get an error message that states “Deleting yourself is not possible.” Does someone know how to resolve this issue?
asked
1 answers
2

It might be a dirty solution, but what you could try, is let the microflow trigger a java action to carry out the actual delete in the background (community commons, RunMicroflowASync/InBackground) and log out the user after triggering that java action.
Or use the Queue module (or the Mx9 equivalent) and set up a job that deletes the account with a delay, so you have time to logout the user.

If users still run into the error, mark the account as ready to delete and log the user out., block ready to delete accounts from logging in (in your Home flow perhaps) and clean out any ready to delete accounts every hour or so.

answered