Function to detect if XI user is a user or admin?
Posted: Tue Oct 08, 2013 9:30 pm
I am working on a component that I wish to restrict certain features depending if the end user type is a "user" or an "admin".
I have looked at the Object Notes component and there are two functions it uses to detect if a user can configure a service.
Are there any other built in functions available to detect the user type? When I say "user type" I am referring to when you are configuring a Nagios XI user account, for the option "Authorization Level" you can choose User or Admin.
I have looked at the Object Notes component and there are two functions it uses to detect if a user can configure a service.
Code: Select all
is_authorized_to_configure_service(0,$hostname,$servicename)
is_authorized_to_configure_host(0,$hostname)