cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
537
Views
0
Helpful
1
Replies

listUser not returning userIdentity

stephan.steiner
Spotlight
Spotlight

Hi

Seems I found another issue - if I do a getUser for a given user and specify the return tags to only include userid, primaryExtension, imAndPresenceEnable and userIdentity, it works out as expected:

Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/10.5"><soapenv:Header/><soapenv:Body><ns:getUser sequence="0"> <userid>lsste</userid><returnedTags><userid/><primaryExtension><pattern/><routePartitionName/></primaryExtension><imAndPresenceEnable/><userIdentity/></returnedTags></ns:getUser></soapenv:Body></soapenv:Envelope>

Response:

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:getUserResponse xmlns:ns="http://www.cisco.com/AXL/API/10.5"><return><user uuid="{E8854125-510C-D08F-79FD-7FC0B78B3C85}"><userid>lsste</userid><primaryExtension><pattern>7881</pattern><routePartitionName>P_INTERNAL</routePartitionName></primaryExtension><imAndPresenceEnable>true</imAndPresenceEnable><userIdentity>lsste@nxodev.intra</userIdentity></user></return></ns:getUserResponse></soapenv:Body></soapenv:Envelope>

Now do the same with listUser

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/10.5"><soapenv:Header/><soapenv:Body><ns:listUser sequence="0"> <searchCriteria><userid>lsste</userid></searchCriteria><returnedTags><userid/><primaryExtension><pattern/><routePartitionName/></primaryExtension><imAndPresenceEnable/><userIdentity/></returnedTags></ns:listUser></soapenv:Body></soapenv:Envelope>

And the response will NOT contain the userIdentity tag:

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><ns:listUserResponse xmlns:ns="http://www.cisco.com/AXL/API/10.5"><return><user uuid="{E8854125-510C-D08F-79FD-7FC0B78B3C85}"><userid>lsste</userid><primaryExtension><pattern>7881</pattern><routePartitionName>P_INTERNAL</routePartitionName></primaryExtension><imAndPresenceEnable>true</imAndPresenceEnable></user></return></ns:listUserResponse></soapenv:Body></soapenv:Envelope>

Given that userIdentity is one of the allowed tags for a listUser command, I see no reason why it shouldn't return the value (it doesn't matter if I apply a filter or just do <userid>%</userid>. If the return tag were not supported, I'd get an axl error telling me which tags are supported, so the documentation and the implementation seem to be in agreement.. it's just that the value is being omitted on a list.

1 Reply 1

npetrele
Cisco Employee
Cisco Employee

I was able to reproduce the problem and filed it as defect ID CSCut12193.