Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
[help] API system_usermanager.php
« previous
next »
Print
Pages: [
1
]
Author
Topic: [help] API system_usermanager.php (Read 2159 times)
surat
Newbie
Posts: 2
Karma: 0
[help] API system_usermanager.php
«
on:
January 28, 2020, 11:51:03 am »
What is the API for create user on
OPNsenseURL/system_usermanager.php?act=new
?? I didn't see it in the documentation
https://docs.opnsense.org/development/api.html
Many thanks!
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: [help] API system_usermanager.php
«
Reply #1 on:
January 28, 2020, 11:57:47 am »
There is no API for that. In general, look at the URL and if it contains /ui after the host, it is likely having an API behind. Many legacy pages are not migrated yet but some are and mostly all plugins as well.
Logged
surat
Newbie
Posts: 2
Karma: 0
Re: [help] API system_usermanager.php
«
Reply #2 on:
January 28, 2020, 12:09:28 pm »
is there a way to create users without OPNsense-WebGUI? I need to create users via curl or python for integrate with my internal Human Resource application. Is there any reference to do that?
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: [help] API system_usermanager.php
«
Reply #3 on:
January 28, 2020, 01:28:37 pm »
You can
... Port the page to MVC
... Use Selenium to automate a browser
... You can work in a script with the pages (example:
https://github.com/fabianfrz/scripts/blob/master/OPNsense/backup_over_http.rb
)
... Write a custom script which dies the same as the UI on OPNsense and updates your data periodically.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
[help] API system_usermanager.php