How do I delete a user?

I see no option for doing this, even for a user that I just created. Using BPM 6.3.2.

1 Like

You can desactivate a user by clicking on “desactivate” (bottom right of the screen when user is selected)

For business consistency reasons you can not delete a user “easily”

WARNING: I am not shure about the following (i am not a Bonita expert).

IF that user is really not implied in any activity and IF he is not bound to other users by hierarchical associactions I suppose you may disable this user as told and then:

delete from user_ where not enabled;

On my DBMS (Postgres), fields referenced by other tables are set to “ON DELETE CASCADE” so this query makes by itself all the job.

If this user has the role of manager for another or has played a role in some activities, that’s another story …

I think you can use the méthode deleteUser() in the identityApi :
http://documentation.bonitasoft.com/javadoc/api/6.3/org/bonitasoft/engine/api/UserAPI.html#deleteUser(long)

You can do this by groovy. At firt, you have to get your user username, afther that you use the deleteuser(Username) , methode

Yes, I know that. You should, however, allow the ability to delete an account that has no dependencies. What is the “hard way”? I am a developer.