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 2019-10-02 14:15:58

yazane
Member
Registered: 2019-10-02
Posts: 7

api rest not working ERROR_RIGHT_MISSING

Good day,

when trying to get tickets from my glpi api it gives me ERROR_RIGHT_MISSING as response, it only get the tickets where the user is the requester.

I am using super admin user to fetch data,


Cordially,

Offline

#2 2019-10-02 16:23:13

JuanDavid8a
Member
From: Medellin - Colombia
Registered: 2019-10-01
Posts: 3
Website

Re: api rest not working ERROR_RIGHT_MISSING

To list a user's tickets you must:

URL:

apirest.php/search/Ticket/?criteria[0][field]=4&criteria[0][searchtype]=equals&criteria[0][value]=8

Where 8 is the user id

bilXHpV.png

Last edited by JuanDavid8a (2019-10-02 21:34:59)


Full Stack Developer experto en Sistematización de Procesos en la Nube, Jugador de PaintBall, Roller Derby, Gomoso de la Robótica, Electrónica y La Tecnología.

Canal de youtube: https://www.youtube.com/user/juand8a/
Página Web: http://juandavid8a.github.io

Offline

#3 2019-10-05 12:10:09

LaDenrée
HELPER
Registered: 2012-11-19
Posts: 6,146

Re: api rest not working ERROR_RIGHT_MISSING

once you get your session token check  active profile -> i Guess this profile is not allowed to see all tickets


Trouver la panne avant de réparer...
GLPI10.0.10 (ubuntu 22.04 PHP8.1  Mariadb10.6 ) plugins : comportements 2.7.2 reports 1.16.0 formcreator 2.13.8, datainjection 2.13.4 fields 1.21.6

Offline

Board footer

Powered by FluxBB