Bulk Adding / Importing Bot Users

Hello Community,

Been testing Phabricator and so far I’m really happy and impressed,

I would like to know if it is possible to add / import a bunch of bot users in the database or via Web Interface.

Anyone tried this before?

I can’t seem to find a way to do this currently, outside of database fiddling. You can create users in a script with the conduit user.edit API and then manually change their status to bots by manual fiddling with the table phabricator_user.user specifically you would change isSystemAgent to a value of 1 for any users to make them bots.

So for example (after batch-creating a bunch of users):

$ phabricator/bin/storage shell
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 603
Server version: ....

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> use phabricator_user;
Database changed
MariaDB [phabricator_user]> UPDATE user 
    ->     SET isSystemAgent=1
    ->   WHERE username LIKE '%bot';
1 Like

That’s amazing, thank you very much for the quick feedback.

Is there any instructions already for this “create users in a script with the conduit user.edit API”?
I would like to try this out.

Thanks again