Creating users using cli or api

Hello,

Is it possible to create users using cli or api, if so where can we read more about it?

Thanks,
Kristiyan

There is a Pritunl Terraform Provider but there is no CLI options to add users.

What about this - API Access , is there any other methods supported?

There is an API but it is undocumented, that is only for the authentication.

Do you have any plans to documented it soon?

What I’m also trying to achieve is to retriev the peer certificate(ovpn) programmatically.
Is there any option to achieve this ?
The idea is to register a new peers into organization in a programmatic fashion and as a result of this operation to return the certificate the peer is supposed to use to connect to the PritunlVPN.

@zach ,

I have tried the approach described here → API Access
but the user section returned doesn’t contain anything related to client certificate/endpoint…
Would you mind sharing your thoughts on this?

Certificates are downloaded from /key/<org_id>/<user_id>.tar

@zach ,

This one works perfectly.
Could you also provide similar endpoint but this time for creating new user in organization ?
Thank you!

Most of the endpoints can be found with Chrome Developer Tools it is a POST to /user/<org_id>