I saw several posting non of them answer how to resolve below error.
Hi,
We tried at our end and we could get the results for a 'Business Unit' account monitors. This is allowed under admin scope. It can be accessed using 'Site24x7.Admin.Read' scope.
From the logs we were able to see BU portal admin account zaaid is passed in your request. This is the reason for 'unauthorized' error message. Please change and send the particular business unit account zaaid to get it's monitors. This also can happen when the user is not part of that particular business unit account.
Refer our help doc for more, https://www.site24x7.com/help/api/#business-units-api
If you are still facing this, Please write to us at support@site24x7.com with details to analyze further.
To brief ,
There are two BU as 'test' complete superadmin rights and 'GC' readonly rights .
Is that the case ,that I member of two Business units only with readonly rights and other one superadmin?.
How make token or api to understand my api call are from BU test .
I created some monitor in test BU there but using api to retrieve the monitors details are failing with above errror.
I tried to retrieve the zaaaid id
{ "0": { "zaaid": "4843402648", "user_id": "140954000000025001", "name": "GlobalCollect" }, "1": { "zaaid": "7894646919", "user_id": "452540000000025001", "name": "Test area" } }
Hi,
To access, add, edit, delete Business Units related data you need to use below scopes while generation code for OAuth Token.
Scope Types: Site24x7.Bu.Read, Site24x7.Bu.Create, Site24x7.Bu.Update, Site24x7.Bu.Delete, Site24x7.Bu.All
Refer our help doc for more, https://www.site24x7.com/help/api/#authentication
If you are still facing this, Please write to us at support@site24x7.com with details to analyze further.