You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2018-10-17 15:04:33

SomeoneElse
Member
Registered: 2018-10-17
Posts: 1

API: 401 on accessing apirest.php/Computer with Super Admin creds

Currently testing out GLPI's REST API on v9.2.1 with FusionInventory 9.1 - with a Python script using requests I can successfully create a session, call apirest.php/getMyProfiles, and kill the session - however calling apirest.php/Computer always 401s with 'ERROR_RIGHT_MISSING'.

The credentials used are my current ones plus an App-Token, where I have the Super-Admin profile, so presumably nothing should be barred from me.

I have successfully hacked access via glpi/inc/api.class.php:API.getItems, commenting out the initial 'if (!$itemtype::canView()' block - so everything 'works' outside of some sort of permissions issue. Any idea what missing permission I have on the Computer item type?

Thanks for any help.

Offline

Board footer

Powered by FluxBB