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,
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]);
}
}
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
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 !!
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