cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to clear all users?

arganus
Champ in-the-making
Champ in-the-making
After MUCH testing - we are getting ready to deploy Alfresco Enterprise… is there an easy way (short of manually) to delete the users that are in the current database?
6 REPLIES 6

rliu
Champ in-the-making
Champ in-the-making
Is rebuilding your database an option?

arganus
Champ in-the-making
Champ in-the-making
I'd rather not rebuild the WHOLE database - merely just delete all the "test users" and start the userbase fresh

rliu
Champ in-the-making
Champ in-the-making
Ultimately, if rebuilding the database is not an option, then you're either going to have to bootstrap a class or have a service invoke a webscript to delete the users.

Look at the PersonService.deletePerson(String userName) for more information.

arganus
Champ in-the-making
Champ in-the-making
Does deleting just the user delete the references to each user throughout? I am sure they must be referenced in other tables…

rliu
Champ in-the-making
Champ in-the-making
Using the APIs within should be the only way developers (excluding Alfresco Engineers, which I am not) should manipulate any data. I would never try to perform any add/update/delete transactions directly in the database as I don't full knowledge of how the schema is designed.

arganus
Champ in-the-making
Champ in-the-making
As we purchased the Enterprise version, one would think we would get the database schema as well - but cannot find it anyway in any documentation