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 2024-06-23 21:35:44

possebon
Member
Registered: 2017-07-31
Posts: 5

Include attributes on result of search

Hi all,

I'm doing a search on user by the mobile field.

{{baseUrl}}/search/User?is_deleted=false&ccriteria[0][link]=AND&criteria[0][field]=11&criteria[0][searchtype]=contains&criteria[0][value]=1123311

the result of this is something like:

{
    "totalcount": 1,
    "count": 1,
    "sort": [
        1
    ],
    "order": [
        "ASC"
    ],
    "data": [
        {
            "1": "useraccount",
            "34": "lastname",
            "5": "myemail@domain.com",
            "6": "",
            "3": null,
            "8": 1,
            "11": "mymobile"
        }
    ],
    "content-range": "0-0/1"
}


I want to include other fields, for instance the user id and the user entity.

I did not find a reference how to include that.

Best regards,

possebon

Offline

Board footer

Powered by FluxBB