Methods > glpi.setMyEntity

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

Change the current entity of an authenticated user

input a hashtable

  • help option to get usage information
  • entity (id of the new entity or "all") mandatory (see glpi.listMyEntities)
  • recursive (1 to see the children) optional (default 0)

return a array of hashtable (if succeed)

Call example

$ php testxmlrpc.php --session=k6729g89bgnb0r7dg2bcvahqr2 --method=glpi.setMyEntity --entity=1
+ Calling 'glpi.setMyEntity' on http://localhost//glpi072/plugins/webservices/xmlrpc.php?session=k6729g89bgnb0r7dg2bcvahqr2
+ Response: Array
(
    [0] => Array
        (
            [id] => 1
            [completename] => First entity
        )

)