ndejong / pfsense_fauxapi

REST based API interface for pfSense 2.3.x and 2.4.x to facilitate devops
Apache License 2.0
354 stars 61 forks source link

Example to add new users and move to member groups #72

Closed KelvinFerraz closed 3 years ago

KelvinFerraz commented 3 years ago

Hello,

First one i need say thank you, your API is amazing!

So i have a little problem to understand how to add a new user using python

I'm read your documentation : https://github.com/ndejong/pfsense_fauxapi_client_python/blob/master/examples/usergroup-management.py

But i'm don't understoood complete, you have a simple example how to add user and move this user to expecific group?

Best,

ndejong commented 3 years ago

Hi

Thanks for getting in content - the Python client example does exactly that - https://github.com/ndejong/pfsense_fauxapi_client_python/blob/master/examples/usergroup-management.py

The UserGroupManagementFauxapi class in the example provided above does the grunt work of things like add_user() and manage_user() and add_group() and manage_group() etc ...

Hope that helps.