Methods > glpi.listMyProfiles

This method is only accessible by authenticated users

Version Comments
1.3.0 No change
1.2.0 No change
0.2.0 Method added

List profiles of the authenticated user

input a hastable of option

  • help option to get usage information

return a array of hashtable

  • id
  • name (of the profile)
  • current (0/1)

Call example

$ php testxmlrpc.php --session=k6729g89bgnb0r7dg2bcvahqr2 --method=glpi.listMyProfiles       
+ Calling 'glpi.listMyProfiles' on http://localhost//glpi072/plugins/webservices/xmlrpc.php?session=k6729g89bgnb0r7dg2bcvahqr2
+ Response: Array
(
    [0] => Array
        (
            [id] => 4
            [name] => super-admin
            [current] => 1
        )

)