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 2011-05-23 11:52:23

Reini
Member
Registered: 2009-10-21
Posts: 35

Question about listUsers in Web services plugin

Hello everybody,

I have another question regarding the usage of the Web service interface plug-in.
When I have a look into the documentation of the Web service function "glpi.listUsers" I can see in the list of the input parameters this (among others):
  login : an optional string (MySQL joker % allowed)
  name : an optional string (MySQL joker % allowed)

In the list return values I can find this (among others):
  id of the user
  name of the user (login)
  firstname
  realname

So it seems that the return value "name" corresponds to the parameter "login" of the input params. But then, which field(s) can be searched by using the input parameter "name"? Can anybody explain the usage of the input parameter "name"?

Thank you in advance,
Reini

Offline

#2 2011-05-23 13:18:41

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Question about listUsers in Web services plugin

login search on login (name) field
name search on complete username (firstname + realname or realname + firstname, according to config)


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2011-05-23 13:34:21

Reini
Member
Registered: 2009-10-21
Posts: 35

Re: Question about listUsers in Web services plugin

Thank you! :-)
And how have the two parts of name (firstname and realname) to be concatenated for the search? With a blank, a comma? Or anything else?

Offline

#4 2011-05-23 14:10:28

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: Question about listUsers in Web services plugin

as for display : a space


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

Board footer

Powered by FluxBB