Mass user import options

Luis Manson

New member
For some reason my test migration came with >200 users to rename or merge, since also a lot of them had an empty user name sugestion i googled and came with some javascript to paste in the js console.

The first part selects the "Change conflicting user name" and the seccond one will append a random string to the sugested username

JavaScript:
$(':radio[value=change]').attr('checked',true);
$(':radio[value=change]').click();





Array.prototype.slice.call(
  document.querySelectorAll('input.textCtrl'))
  .forEach(function (el) {

    el.value = el.value +"_" + Math.random().toString(36).substring(5);
});

Also: use this at your own risk, since I'm no js programmer :P
 
Back
Top Bottom