About a month ago I looked into trying to figure out how I could automate creating user and group accounts but I had little luck figuring it out. I want to be able to automate the creation of a user and group then move specified devices into that group ( the last part I can do ). As doing this manually is very time consuming.

I've figured out several ways to search and do various other commands out of the API itself but this one is a bit too complex so far and I've since moved on to other projects ( like taking the snapshot data and importing the main info I need to do massive operations into PHP so it can be used to say, remove duplicates and move them into their appropriate groups ).

So if anyone has figure this out let me know.


Article Comments

Dear Jeremy,

I'm afraid user-creation is simply not possible with PRTGs API.

Best regards.


Dec, 2010 - Permalink

Since it's not possible using the built in APIs, has anyone figured out how to do it despite the API?

Much like I know how to do searches and a few other non API functions.


Dec, 2010 - Permalink

Any luck on this, there's any way to automate user creation?. I have to create around 200+ user and group accounts, and then assign their sensors, so it would be of greate help.

Maybe manually editing a config file or something? even with the risks involved?

Thanks in advance.


Jan, 2011 - Permalink

Any plans to add this ability to the API? If now any workaround to do this directly into the database?


Sep, 2018 - Permalink

Currently there are no plans to add this functionality I'm afraid.


Sep, 2018 - Permalink

Today I wrote a script for that. It uses the API but that part isn't documented.

The code probably isn't to great but it get's the job done.

https://github.com/noaboa97/PrtgAPI-Scripts/blob/main/Functions/New-PrtgUsergroup.ps1


Sep, 2021 - Permalink

I would like to see a proper maintain API for manipulating user/groups/... Just reading access would be a huge improvement to the custom/hacky version found here on the KB


May, 2022 - Permalink