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-02-01 19:32:06

thetech
Member
Registered: 2016-06-23
Posts: 12

A self-service user cannot access ticket documents using API

Je suis désolé je n'ai pas assez de connaissances en français

I want to let an end user with self-service profile manage his tickets.

Get ticket data like this:

curl -X GET -H 'Content-Type: application/json' -H "Session-Token: xxxxxxxxxx" 'http://xxxxxxxxx/apirest.php/Ticket/91?expand_dropdowns=true'

Then with the URL received:

{
"rel":"Document_Item",
"href":"http://xxxxxxxxx/apirest.php/Ticket/91/Document_Item/"
},

I try to get the documents like this:

curl -X GET -H 'Content-Type: application/json' -H "Session-Token: xxxxxxxx" 'http://xxxxxxx/apirest.php/Ticket/91/Document_Item/

Getting this error:

["ERROR_RIGHT_MISSING","You don't have permission to perform this action."]

I know a user cannot access documents area in GLPI, but he can access the ones being added in the ticket.

Do you know any other way to access them?

Offline

Board footer

Powered by FluxBB