Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Christian_Norda
Explorer

Is it possible to use the API to batch create users?

We want to add a lot of users at the same time (they will be used for remote VPN logins, i.e., we are not talking about gaia or admin users..

The API has great support for adding network objects and the like, but we have not found a way to easily add users.. Unfortunately, we do not have an easy way to use templates or AD groups either, so at this time we would really like to have a way to batch add a lot of users..

0 Kudos
4 Replies
PhoneBoy
Admin
Admin

I don't believe the API supports this currently.

However, you can still do this with dbedit.

The following dbedit script will:

  • Create the user group "Marketing"
  • Create the user joe.roberts
  • Set authentication method to "Internal Password"
  • Add user to Marketing group
  • Set his password to vpn123

create user_group Marketing

create user joe.roberts

modify users joe.roberts auth_method "Internal Password"

addelement users joe.roberts groups users:Marketing

update_all

set_pass joe.roberts vpn123

update_all

0 Kudos
urik_7
Explorer

Hi @PhoneBoy,

Is this now available via API?

Thanks & regards,
0 Kudos
PhoneBoy
Admin
Admin

There is no formal API support for users in current versions (as of R80.40).
Some of the above actions may be possible using generic-object API calls.
0 Kudos
urik_7
Explorer

Thank you for your reply, much appreciated.
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events