Skip to content

No way to delete users #177

Closed
Closed

Description

@Ultragian

Basically what the title says.
There's no button to delete a user. I tried removing them from the default space to see if that would delete them, but you can't remove them from the default workspace.
Also no way to change their configurations.
Seems like an interesting approach, but if you mess up during account creation, you're kind of fucked.

Activity

  1. ados8 commented on Aug 13, 2024

    @ados8

    I never noticed, that is an oversight for sure.
    If you want to delete them or change their settings you could do it from the Postgres database.

  2. testtobi commented on Aug 13, 2024

    @testtobi

    Could you give an example how to delete a user within the postgres db.

  3. bolavefasfas commented on Aug 19, 2024

    @bolavefasfas

    I never noticed, that is an oversight for sure. If you want to delete them or change their settings you could do it from the Postgres database.

    Can you add delete option in gui in future ?

  4. aayushchugh commented on Aug 21, 2024

    @aayushchugh

    I think I can pick this issue, this will be a great start for me in this open-source project.

    Can someone assign this issue to me?

  5. bolavefasfas commented on Aug 23, 2024

    @bolavefasfas

    I think I can pick this issue, this will be a great start for me in this open-source project.

    Can someone assign this issue to me?

    MAYBE DO IT AND CREATE A PULL REQUEST

  6. aayushchugh commented on Aug 23, 2024

    @aayushchugh

    Okay, I'll be working on this issue

  7. Philipinho commented on Aug 23, 2024

    @Philipinho
    Member

    Hi @aayushchugh, thank you for your interest in working on this.

    Ideally, I would prefer a way to suspend and another to deactivate user accounts but not delete them.
    Deactivating will be a permanent action, but it will not delete the user from the database since the user is attached to certain records in the database.

  8. aayushchugh commented on Aug 23, 2024

    @aayushchugh

    @Philipinho I won't delete them from the database, I am thinking of adding a deactivated flag or something like that so that we can save that user's information but suspend their actions

  9. bolavefasfas commented on Aug 27, 2024

    @bolavefasfas

    Maybe just disable the user and givee an option to enable it again,
    seems a good option comapred to deleting.

  10. aayushchugh commented on Aug 27, 2024

    @aayushchugh

    We can do that too, just waiting for @Philipinho 's approval before I start working on this.

  11. Philipinho commented on Aug 27, 2024

    @Philipinho
    Member

    @aayushchugh, I would love to see what you come up with.

    This is a rough idea of it.

    Suspended user:
    The user account will retain all permissions but cannot log in. There is a deactivated_at column for this.

    Deleted user:
    This action is irreversible. We will remove the user from all spaces and groups. The user's email should be anonymized.
    Any resource created by the user will remain untouched.
    There is a deleted_at column for this too.

    Good luck.

  12. aayushchugh commented on Aug 27, 2024

    @aayushchugh

    Okay then I'll give both options to admin they can either suspend an account or delete it.

  13. bolavefasfas commented on Sep 2, 2024

    @bolavefasfas

    Okay then I'll give both options to admin they can either suspend an account or delete it.

    Perfect

  14. aayushchugh commented on Oct 4, 2024

    @aayushchugh

    Sorry for the delay, I am starting to work on this issue

  15. aayushchugh commented on Oct 4, 2024

    @aayushchugh

    Dear @Philipinho,

    I have considered two options for displaying the Delete and Suspend Account buttons:

    1. Add an additional button to suspend the account next to the delete icon.

    image

    Implement a popover that appears when a user clicks on the delete icon, allowing them to choose either the "Delete" or "Suspend" option.

    image

    Please let me know which approach you prefer or if you have any alternative suggestions.

  16. 10 remaining items

  17. aayushchugh commented on Feb 16, 2025

    @aayushchugh

    Update from my side:

    Sorry guys I was busy in some other work. I have closed #373 for now because of multiple conflicts but I'll raise a new PR soon

  18. mrcsdl commented on Feb 20, 2025

    @mrcsdl

    Hi, was struggling the same issue related to FR #63 so like i prompted a solution that worked for me for #63 i prompted a version to delete a database user with prior checking to referenced items. Its not interactive and high complex written (GPT) but it raises a warning and you are free to add a pause or comment out the delete user phrase. It worked fine for me in multiple tests. I guess..to delete a user is not a common thing and more kind of a exception.

    https://github.com/k0lp4tzki/bash/blob/main/delete_users.sh

    Image

    Hey, i tryed out your code, but for some reason ill always get the following error:

    ./delete_users.sh: cannot execute: required file not found

    @k0lp4tzki

  19. k0lp4tzki commented on Feb 20, 2025

    @k0lp4tzki

    Hi, was struggling the same issue related to FR #63 so like i prompted a solution that worked for me for #63 i prompted a version to delete a database user with prior checking to referenced items. Its not interactive and high complex written (GPT) but it raises a warning and you are free to add a pause or comment out the delete user phrase. It worked fine for me in multiple tests. I guess..to delete a user is not a common thing and more kind of a exception.
    https://github.com/k0lp4tzki/bash/blob/main/delete_users.sh
    Image

    Hey, i tryed out your code, but for some reason ill always get the following error:

    ./delete_users.sh: cannot execute: required file not found

    @k0lp4tzki

    Did you give execute permission (x flag) on the file after creating it?
    touch delete_users.sh (or some other name is totally random)
    chmod +x on <script_name.sh>
    ./<script_name>.sh

  20. mrcsdl commented on Feb 20, 2025

    @mrcsdl

    Hi, was struggling the same issue related to FR #63 so like i prompted a solution that worked for me for #63 i prompted a version to delete a database user with prior checking to referenced items. Its not interactive and high complex written (GPT) but it raises a warning and you are free to add a pause or comment out the delete user phrase. It worked fine for me in multiple tests. I guess..to delete a user is not a common thing and more kind of a exception.
    https://github.com/k0lp4tzki/bash/blob/main/delete_users.sh
    Image

    Hey, i tryed out your code, but for some reason ill always get the following error:
    ./delete_users.sh: cannot execute: required file not found
    @k0lp4tzki

    Did you give execute permission (x flag) on the file after creating it? touch delete_users.sh (or some other name is totally random) chmod +x on <file_name.sh> ./<script_name>.sh

    yeah i did that already.

  21. k0lp4tzki commented on Feb 20, 2025

    @k0lp4tzki

    Can you provide me screenshots? because it seems it's nothing wrong with the script itself.
    Send screenshot from a ls -l in your directory and from the error message.

  22. mrcsdl commented on Feb 20, 2025

    @mrcsdl

    Image

    here you go

  23. k0lp4tzki commented on Feb 20, 2025

    @k0lp4tzki

    Yes u are trying to execute as root. You need your docker environment because the Scripts executes docker commands.

  24. mahmoud-samy commented on Mar 10, 2025

    @mahmoud-samy

    Hi, was struggling the same issue related to FR #63 so like i prompted a solution that worked for me for #63 i prompted a version to delete a database user with prior checking to referenced items. Its not interactive and high complex written (GPT) but it raises a warning and you are free to add a pause or comment out the delete user phrase. It worked fine for me in multiple tests. I guess..to delete a user is not a common thing and more kind of a exception.

    https://github.com/k0lp4tzki/bash/blob/main/delete_users.sh

    Image

    🛠 Fix: Handle Foreign Key Constraint in page_history

    The script fails to delete users due to a foreign key constraint in page_history.last_updated_by_id.

    To fix this, update page_history before deleting the user:

    UPDATE page_history SET last_updated_by_id = NULL WHERE last_updated_by_id = '$USER_ID';

    This prevents the constraint error and allows the user deletion to proceed. 🚀

  25. ghonchesefidi commented on Mar 11, 2025

    @ghonchesefidi

    still Looking forward to this one!

  26. franconianmetal commented on Mar 11, 2025

    @franconianmetal

    yes, appreciate user-deletion possibility.
    btw, can you add option to activate user rather than using the link for transition form pending to active status
    see 844

  27. k0lp4tzki commented on Mar 25, 2025

    @k0lp4tzki

    Hi, was struggling the same issue related to FR #63 so like i prompted a solution that worked for me for #63 i prompted a version to delete a database user with prior checking to referenced items. Its not interactive and high complex written (GPT) but it raises a warning and you are free to add a pause or comment out the delete user phrase. It worked fine for me in multiple tests. I guess..to delete a user is not a common thing and more kind of a exception.
    https://github.com/k0lp4tzki/bash/blob/main/delete_users.sh
    Image

    🛠 Fix: Handle Foreign Key Constraint in page_history

    The script fails to delete users due to a foreign key constraint in page_history.last_updated_by_id.

    To fix this, update page_history before deleting the user:

    UPDATE page_history SET last_updated_by_id = NULL WHERE last_updated_by_id = '$USER_ID';

    This prevents the constraint error and allows the user deletion to proceed. 🚀

    merged it into the script, mentioned you in the header. thanks for the contribution

  28. Philipinho commented on Apr 3, 2025

    @Philipinho
    Member

    Working on this now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions