Is it possible from the API, to modify the access rights of a user on an object?, I try with /api/setobjectproperty.htm?id=[id_of_object]&name=accessrights_[id_of_user]&value=[-1,100,200,400], but even though it answers OK, it has no effect.

Note: the object is not inheriting this information.


Article Comments

Hi alaurent,

Please see this thread for more information

Regards,

lordmilko


Nov, 2018 - Permalink

Thank you.

Now I wonder, is it possible to call / execute a PowerShell script from the API?


Nov, 2018 - Permalink

Hello Laurent,
thank you for your reply/follow-up.

Not sure I'm following. Can you elaborate? How/why exactly would you do this? What's the use case?

Best Regards,
Luciano Lingnau [Paessler Support]


Nov, 2018 - Permalink

Hello Luciano, we are developing a control panel that integrates several systems, including one PRTG. Under certain conditions, we need an operator to activate an emergency button, which, among other things, would need to make changes to the access rights of some of the PRTG objets. Therefore, we ask ourselves if it is possible to modify the access parameters from the API.


Dec, 2018 - Permalink

Hi Laurent,

I'm afraid there is no integrated option to modify the access parameters with PRTG's built in API. You can however use lordmilko's API to do so.

Please find more information here.


Kind regards,
Andreas Günther
Tech Support, Paessler AG

support@paessler.com


Dec, 2018 - Permalink