Sometimes hundreds of users need to be created in the development and testing environments for testing purposes, which then need to be manually removed. Now, you can delete multiple users in batch, which share defined parameters. To delete multiple users, you need to obtain the client Id and then use it on an external application that allows the use of rest services. Find a description on how to obtain the client Id below:
•To delete multiple users, you need to use an external application that allows the use of Rest Services. Use this link to visualize the steps to delete all users once you have the client Id.
•All users with dependencies to any database table such as autholog, currentassignee, entitylog, wfcase, bauserstatisticscase, userbauth, assignationlog, bastakeholderuser, and business entities tables cannot be deleted.
•The steps described below can only be executed by Bizagi administrators.
•This functionality works only for Development or Test environments.
What you need to do
To do so, follow the steps described below:
1. Click on the OAuth2 Applications option available under the Admin menu.
2. Add a new application.
Click on the option to add a new record in this table:
When defining the new application, use the following specifications:
•Name: Give a unique and representative name.
•Grant type: Bearer token
•Web Site: Indicates the URL where the Rest service is exposed. Suppose that the server you are using is called "servername" and the Bizagi project that you want to delete users from is called "project-name", then the URL structure is: http://servername/project-name/Rest/Users/MassUserDeletion
•Allowed Scope: Select the API option.
•Description: Brief description of the permission and the application which the authentication permissions were assigned to.
Find the Client Id in the corresponding column of the table that appears.
To delete all users, you must use an external application that supports allows the use of Rest services. Follow the steps described on this link.