cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with deleteUsers()

darkhope
Champ in-the-making
Champ in-the-making
Sorry if I made a mistake about the forum where I post my problem, and sorry for my poor english Smiley Happy. Smiley Surprisedops:

I have a problem when I remove an user, and I  am developing in Java for a project for a training in company.

When I delete it from my application (I am logged in as 'admin'), the user is removed of the users list in the Manage System Users of the admin.
My problem is that I can disconnect, and reconnect with the login and password of the removed user.
And if I disconnect again to log-in as ?admin?, I will see the "removed" user in the Manage System Users screen.
Moreover, it is impossible to register a new user with the same username that the one I have removed.

That?s my source code:
    private void removeUsers(String users){
      //Supprime les utilisateurs dont le username est pass? en param?tre ("user1 user2 user3")
       //Probl?me: supprime l'utilisateur de la liste des utilisateurs dans Alfresco, mais
       //il est toujours possible de se connecter avec l'utilisateur supprim?.
        try{
           String[] userNames = {users};
           WebServiceFactory.getAdministrationService().deleteUsers(userNames);
           MessageDialog.openInformation(window.getShell(),"Suppression d'utilisateur","L'utilisateur "+users+" a bien ?t? supprim?.");
        }catch(Exception ex){
           System.out.println("Exception : "+ex);
           
        }
    }

Thanks for helping me Smiley Happy.
2 REPLIES 2

adamss
Champ in-the-making
Champ in-the-making
I am facing a similar issue. Were you able to solve this problem?

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

This sounds like it could be a bug so i've creted a Jira issue to ensure it gets delt with.

http://issues.alfresco.com/browse/AR-1068

Cheers,
Roy