-
Notifications
You must be signed in to change notification settings - Fork 492
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API: Deleting a user does not clean up roles, can introduce undesirable behavior. #1929
Comments
Related is the "Stop using |
What do you mean by orphan any objects? |
Well, I assume there needs to be an admin of a dataverse, no? Anything else that assumes a specific user? From: Gustavo Durand [notifications@github.com] What do you mean by orphan any objects? — |
This API is in the admin block and superuser only, so we will defer to 4.0.1 to review how we want to handle. |
Making a feature because it is currently internal, unsupported. |
Combining ticket #2825 which is to improve messaging when deleting user that has history, causing delete to fail. |
Since this came up in the community call today, I'll mention that while deleting users is possible, it's not especially recommended until this issue is resolved. It's documented at http://guides.dataverse.org/en/4.6.2/installation/shibboleth.html#exchange-metadata-with-your-identity-provider and looks like this:
|
Hi @pdurbin , is this the latest issue related to deleting users? We would like to be able to delete a user who's e-mail is no longer valid and has moved on, using the Dashboard UI as superadmin. They've since been removed from most known datasets but there is a chance we missed something so we don't want to introduce issues by deleting them using the DELETE call. Thanks for any updates! |
@amberleahey it sounds like you're saying you already clicked the "Remove All" button in the new-ish "Manage Users" dashboard: That new button should go a long way in mitigating this only issue (#1929). Before you delete the user, you should probably check if the user was the creator of any dataverses, datasets, or files. I don't think there's an API for this, so can you please suggest an addition to the Google doc linked from #4169 ask for help defining this query? What's wrong with leaving the user in the database anyway? 😄 What problem does it solve to remove the user from the database? Should we add a "delete user" button? |
Some more background: Part of the reason we don't allow deleting if users is that if they have done something, like create a dataverse or dataset, or even download, that is data that we want to keep. So we need to keep the row in the authenticated user table. We used to have the concept of deactivate, but decided in favor of the above "remove all roles". |
Thanks @pdurbin I don't see the remove all button, this must be new! We are running 4.7.1 |
@amberleahey yep, that button is new as of 4.8, implemented in #4055. |
Related: #4356 |
Phil indicated that the delete user api only deletes the user and does not clean up any associated roles, nor does it check whether it will orphan any object: dv, ds. This could lead to undesirable behavior, perhaps security issues.
The text was updated successfully, but these errors were encountered: