Page 1 of 1

READ ONLY USER WITH API ACCESS

Posted: Mon Aug 27, 2018 10:53 am
by mohan23
Hi Team,

We have created read only user and provided API access to the read only user and were trying to get users list from nagios server using API Key of read only user like below



http://hostname/nagiosxi/api/v1/system/ ... 8QpUFTY5vD

We are getting error and not able to pull data using API Key of read only user and only admin user is able to pull all the data using API Key of admin user


Can some one help me on how to pull data using API key of read only user

Regards,
Mohan

Re: READ ONLY USER WITH API ACCESS

Posted: Mon Aug 27, 2018 11:26 am
by lmiltchev
What is the data that this user is not able to access? Please, show us an example command along with the output of it (error messages, etc.). Also, show the security settings of this user.

Admin > Manage Users > <ro user> > Edit

Re: READ ONLY USER WITH API ACCESS

Posted: Tue Aug 28, 2018 12:40 am
by mohan23
Hi,

Attached are the screenshots that shows read only user permissions and error screenshot when we try to pull users who are added in nagios using API Key of read only user and third screenshot shows admin user is able to pull same users list.

Re: READ ONLY USER WITH API ACCESS

Posted: Tue Aug 28, 2018 9:35 am
by scottwilkerson
From the top of the Help page
Help -> REST API Docs -> System Reference

The system section of the API allows management of the system, services, and backend. This API section is admin only.

Re: READ ONLY USER WITH API ACCESS

Posted: Wed Aug 29, 2018 7:34 am
by mohan23
We are trying to pull performance data from nagios using REST API, is there any way that read only user can pull ? As it was mentioned in earlier , only admin can handle API section.

Also can you provide me using admin how we can pull performance data using REST API using custom time period( from a particular date to some other particular date).

Re: READ ONLY USER WITH API ACCESS

Posted: Wed Aug 29, 2018 8:11 am
by scottwilkerson
Performance data would be available to that user, that is under Help -> Objects -> objects/rrdexport