che icon indicating copy to clipboard operation
che copied to clipboard

[Docs] Add instructions how to remove Che user

Open RomanNikitenko opened this issue 6 years ago • 15 comments

Summary

Update: Please see https://github.com/eclipse/che/issues/17500#issuecomment-665952556

My question is: is it possible to remove an user on Che?

My motivation is: I can not start any workspace due to incorrect namespace, please see relevant info section. I tried to remove user using swagger. After removing user doesn't exist, but after refreshing a page or at next login the system has the same user with the same ID.

Please see my short demo:

user_delete

Relevant information

I faced with the problem like described here: https://github.com/eclipse/che/issues/17265#issuecomment-650947172 So:

  • Che's Keycloak shows the form with username, email, etc. when a user is trying to login into Che Dashboard the very first time
  • autofill plugin sets the fields
  • as result username can get incorrect value (with real names, including spaces or email for example)

Then user can not create a workspace due to not a valid namespace: The workspace would be started in a namespace/project '<incorrect value here>', which is not a valid namespace/project name.

Please see https://github.com/eclipse/che/issues/17265#issuecomment-650947172.

RomanNikitenko avatar Jul 28 '20 09:07 RomanNikitenko

cc @skabashnyuk @tolusha Any thoughts if it's possible to fully unregister the user by themselves? Seems keycloak user should be removed as well, but is it possible?

sleshchenko avatar Jul 28 '20 11:07 sleshchenko

@sleshchenko I don't know. Probably keycloak admin can do that. Che-server API behaves correctly in this use-case as far as I can see.

skabashnyuk avatar Jul 28 '20 11:07 skabashnyuk

It is necessary to remove user in keycloak. Screenshot from 2020-07-29 13-57-19

tolusha avatar Jul 29 '20 10:07 tolusha

@RomanNikitenko Did I answer your question?

tolusha avatar Jul 29 '20 13:07 tolusha

@tolusha I guess it's possible for admin role only.

So for my case for https://che-dogfooding.apps.che-dev.x6e0.p1.openshiftapps.com/ instance I can not remove myself from keycloak.

correct?

RomanNikitenko avatar Jul 29 '20 14:07 RomanNikitenko

yes, only admin can remove user from the keycloak.

tolusha avatar Jul 29 '20 14:07 tolusha

@skabashnyuk @tolusha @sleshchenko thank you very much for your help and support!

Now it's clear for me, so I'm closing the issue

RomanNikitenko avatar Jul 29 '20 15:07 RomanNikitenko

@RomanNikitenko if it's not in documentation yet we should probably re-open this issue as a documentation issue. We need to add:

  • a section about how to remove a user in the admin guide
  • a link to #17265 in the known issues

l0rd avatar Jul 29 '20 22:07 l0rd

@l0rd there was a request from the Toolchain team to make the Delete API call GDPR compliant and cleanup resources not only on the db level, but also on keycloak - https://github.com/eclipse/che/issues/17541 I believe we need to treat it as a high priority issue ^

ibuziuk avatar Jul 31 '20 10:07 ibuziuk

@ibuziuk priority now is documentation (let's include this issue into next sprint backlog) and then let's prioritize the API side (the issue you mentioned).

l0rd avatar Jul 31 '20 10:07 l0rd

@ibuziuk is there anything left on this task?

skabashnyuk avatar Nov 11 '20 09:11 skabashnyuk

Docs Jira issue https://issues.redhat.com/browse/RHDEVDOCS-2576

yhontyk avatar Jan 28 '21 13:01 yhontyk

Is the current doc here sufficient? https://www.eclipse.org/che/docs/che-7/administration-guide/removing-user-data/

themr0c avatar Mar 02 '21 14:03 themr0c

@l0rd could you take a look if the current documentation covers the issue https://www.eclipse.org/che/docs/che-7/administration-guide/removing-user-data/ ? Can we close it?

yhontyk avatar Mar 23 '21 14:03 yhontyk

@boczkowska yes. Closing.

l0rd avatar Mar 24 '21 22:03 l0rd