Methods > glpi.listMyEntities

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 allowed entities of the authenticated user (from user's right)

input a hastable of option

  • help option to get usage information

return a array of hashtable

  • fields of glpi_entities
  • recursive (0/1)
  • current (0/1)

For activated entities, see glpi.listEntities

Call example

$ php testxmlrpc.php --session=k6729g89bgnb0r7dg2bcvahqr2 --method=glpi.listMyEntities       
+ Calling 'glpi.listMyEntities' on http://localhost//glpi080/plugins/webservices/xmlrpc.php?session=k6729g89bgnb0r7dg2bcvahqr2
+ Response: Array
(
    [0] => Array
        (
            [id] => 0
            [name] => Root entity
            [entities_id] => 0
            [completename] => Root entity
            [comment] => 
            [level] => 0
            [is_recursive] => 1
            [current] => 0
        )
)