You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Reacted by Elson, Anthonin, Víctor Díaz Cortés, Nikolay Kolanski, Inayath Shaikh, Rafael Grochoska, Mohammad Ghonchesefidi, Infini3y, Marcin-Majchrzyk, Astecom and 1 more
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.
@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
@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.
Reacted by Ayush Chugh, jotapedroefe and John Muchiri
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.
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
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
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
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
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
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.
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.
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
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
🛠 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
Activity
ados8 commentedon Aug 13, 2024
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.
testtobi commentedon Aug 13, 2024
Could you give an example how to delete a user within the postgres db.
bolavefasfas commentedon Aug 19, 2024
Can you add delete option in gui in future ?
aayushchugh commentedon Aug 21, 2024
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?
bolavefasfas commentedon Aug 23, 2024
MAYBE DO IT AND CREATE A PULL REQUEST
aayushchugh commentedon Aug 23, 2024
Okay, I'll be working on this issue
Philipinho commentedon Aug 23, 2024
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.
aayushchugh commentedon Aug 23, 2024
@Philipinho I won't delete them from the database, I am thinking of adding a
deactivatedflag or something like that so that we can save that user's information but suspend their actionsbolavefasfas commentedon Aug 27, 2024
Maybe just disable the user and givee an option to enable it again,
seems a good option comapred to deleting.
aayushchugh commentedon Aug 27, 2024
We can do that too, just waiting for @Philipinho 's approval before I start working on this.
Philipinho commentedon Aug 27, 2024
@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_atcolumn 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_atcolumn for this too.Good luck.
aayushchugh commentedon Aug 27, 2024
Okay then I'll give both options to admin they can either suspend an account or delete it.
bolavefasfas commentedon Sep 2, 2024
Perfect
aayushchugh commentedon Oct 4, 2024
Sorry for the delay, I am starting to work on this issue
aayushchugh commentedon Oct 4, 2024
Dear @Philipinho,
I have considered two options for displaying the
DeleteandSuspend Accountbuttons:Implement a popover that appears when a user clicks on the delete icon, allowing them to choose either the "Delete" or "Suspend" option.
Please let me know which approach you prefer or if you have any alternative suggestions.
10 remaining items
aayushchugh commentedon Feb 16, 2025
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
mrcsdl commentedon Feb 20, 2025
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
k0lp4tzki commentedon Feb 20, 2025
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
mrcsdl commentedon Feb 20, 2025
yeah i did that already.
k0lp4tzki commentedon Feb 20, 2025
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.
mrcsdl commentedon Feb 20, 2025
here you go
k0lp4tzki commentedon Feb 20, 2025
Yes u are trying to execute as root. You need your docker environment because the Scripts executes docker commands.
mahmoud-samy commentedon Mar 10, 2025
🛠 Fix: Handle Foreign Key Constraint in
page_historyThe script fails to delete users due to a foreign key constraint in
page_history.last_updated_by_id.To fix this, update
page_historybefore deleting the user:This prevents the constraint error and allows the user deletion to proceed. 🚀
ghonchesefidi commentedon Mar 11, 2025
still Looking forward to this one!
franconianmetal commentedon Mar 11, 2025
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
k0lp4tzki commentedon Mar 25, 2025
merged it into the script, mentioned you in the header. thanks for the contribution
Philipinho commentedon Apr 3, 2025
Working on this now.
refactor(ai): unify provider-settings allowlist + stronger chatApiSty…
Merge pull request 'feat(ai-chat): surface reasoning from openai-comp…