Use APIUser for _hostgroups2json, _servicegroups2json and _hostgroup2json