Page 1 of 1

Batch configuration of users/groups

Posted: Mon Nov 13, 2023 2:08 pm
by jz
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...

Re: Batch configuration of users/groups

Posted: Tue Nov 14, 2023 11:35 am
by openvpn_inc
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