Batch configuration of users/groups

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
jz
OpenVpn Newbie
Posts: 1
Joined: Mon Nov 13, 2023 2:02 pm

Batch configuration of users/groups

Post by jz » Mon Nov 13, 2023 2:08 pm

Hello,

I know I can configure one property of a user/group at a time via sacli.

Is there a way to configure all user properties in one step? Something like a JSON I get with

Code: Select all

sacli --tfilt=user_connect --pfilt=myuser UserPropGet
and feed a

Code: Select all

sacli --tfilt=user_connect --pfilt=myuser UserPropPut
with it (this is not working, I put it here for you to get the idea).
Even better for a list of users/groups...

User avatar
openvpn_inc
OpenVPN Inc.
Posts: 1333
Joined: Tue Feb 16, 2021 10:41 am

Re: Batch configuration of users/groups

Post by openvpn_inc » Tue Nov 14, 2023 11:35 am

Hello jz,

No, that is not possible. You will have to specify each username that you want to put a user-specific property on. So that means a bit more work in getting the usernames and crafting the individual commands.

Kind regards,
Johan
Image OpenVPN Inc.
Answers provided by OpenVPN Inc. staff members here are provided on a voluntary best-effort basis, and no rights can be claimed on the basis of answers posted in this public forum. If you wish to get official support from OpenVPN Inc. please use the official support ticket system: https://openvpn.net/support

Post Reply