SA

Hello Everyone,

Would anybody on board help me know,  How do i go about deleting "Bulk users" in one shot.



I need to delete 500 users in one go and searching and deleting them will be a long and tedious process,

any help on this forum will be highly appreciated.



Thank you,

by Didier Nowak
Posted on Mon, 01/25/2016 - 15:55

Hello,

You can do it with a script, like this: (You'll have to implement the shouldWeDeleteTheUser(User user); Method ;)

  

    var allUsers = ArisData.getActiveDatabase().UserList();

   for (var i = 0; i <allUsers.length; i++){

        if (shouldWeDeleteTheUser(allUsers[i])){

             ArisData.getActiveDatabase().DeleteUser(allUsers[i]);

       }

    }

0
by Sayed Ali Author
Posted on Wed, 01/27/2016 - 06:29

Hello Didier,

Appreciate your revert, But i am a bit lost here, Would you mind giving me a detailed steps as to how do i go about doing this and where and how do i make and implement these changes ...

An elaborate response would do wonders for newbie like us !



Thank you

0
by Sayed Ali Author
Posted on Tue, 05/10/2016 - 09:34

Hello Everybody on board,

My apologies for bumping this thread again, But i am in dire need of this utility !!



I need to delete a lot of accounts, and doing them via UMC is a very tedious and time consuming task.



Can anybody on the board help me understand the ABOVE code mentioned by "Didier" and how can i execute the same ?

Somebody , Please Assist !!!!



Thank you for your time !!

0
by Diego Labrador
Posted on Tue, 05/24/2016 - 22:28

In reply to by SystemAli

Hi all

I'm doing some test, when I'm done, send you a script to delete the users and explain how to use it.

Regards

0
by Diego Labrador
Posted on Thu, 05/26/2016 - 18:14

In reply to by DiegoA

HI all

This script can delete the users:

var allUsers = ArisData.getActiveDatabase().UserList();

for (var i = 0; i < allUsers.lenght; i++){

        ArisData.getActiveDatabase().DeleteUser(allUsers[i]);

}

This script delete ALL the users, be aware of that. You can make some filter to avoid delete some users. This script must me inside a report to be executed.

Any doubts, please send me an email

Regards

Thanks to Didier Nowak for the info

0

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock