Skip to content

cli: add user deletion #2975

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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ntarocco
Copy link
Contributor

@ntarocco ntarocco commented Feb 7, 2025

No description provided.

Copy link
Contributor

github-actions bot commented Apr 9, 2025

This PR was automatically marked as stale.

@github-actions github-actions bot added the stale No activity for more than 60 days. label Apr 9, 2025
@Samk13 Samk13 removed the stale No activity for more than 60 days. label Apr 9, 2025
Copy link
Contributor

github-actions bot commented Jun 9, 2025

This PR was automatically marked as stale.

@github-actions github-actions bot added the stale No activity for more than 60 days. label Jun 9, 2025
@utnapischtim
Copy link
Contributor

i would move that to invenio-accounts. on invenio-accounts cli we have users-create we should group those commands together


from invenio_rdm_records.proxies import current_rdm_records_service

drafts = current_rdm_records_service.search_drafts(idty)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is it not possible to delete a user if drafts are still active? in my opinion it should not matter where a user is registered or part of, if the user wants that their personal data should be deleted it should be deleted. the discussion is how to handle that situation in a way that it doesn't crashes the system

from invenio_oauthclient.models import RemoteAccount, RemoteToken, UserIdentity
from invenio_users_resources.proxies import current_users_service

with db.session.begin_nested():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this one should be moved to a dedicated api/model class

@github-actions github-actions bot removed the stale No activity for more than 60 days. label Jun 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog 😴
Development

Successfully merging this pull request may close these issues.

3 participants