Author Message
Torrance
Joined: Feb 7, 2020
Messages: 27
Offline
Hello,
Anyone know what the postman value entry should look like for "searchCriteria" when searching for a login name using UPM WS? In my parameters I have entityType with a value of "user". I can't tell from the programmer's guide if the value for search criteria should be a full xml or just the filter with tags. What should the value look like if I am looking for login user=someguy@someplace.com?
le103.avaya.com
Joined: Sep 4, 2019
Messages: 6
Offline
Hi Torrance,
If you are using POSTMAN, you can search the user with URL link below:
https://SMGR FQDN/web/mgmtwebservice/user/yourusername@....

Pls let me know if you need anything else


Thanks
Vu Le

le103.avaya.com
Joined: Sep 4, 2019
Messages: 6
Offline
le103.avaya.com wrote:Hi Torrance,
If you are using POSTMAN, you can search the user with URL link below:
https://SMGR FQDN/web/mgmtwebservice/user/yourusername@....

Pls let me know if you need anything else


Thanks
Vu Le



In POSTMAN, we cannot use the search Criteria directly, it will not work. you have to use this format in the URL below:

https://SMGR FQDN/web/mgmtwebservice?entityType=user&searchCriteria=%26lt;?xml version=%26quot;1.0%26quot; encoding=%26quot;UTF-8%26quot;?%26gt;
%26lt;tns:management-webservice-criteria xmlns:tns=%26quot;http://www.avaya.com/mgmt-web-criteria/%26quot;
xmlns:xsi=%26quot;http://www.w3.org/2001/XMLSchema-instance%26quot;
xsi:schemaLocation=%26quot;http://www.avaya.com/mgmt-web-criteria/ mgmt-web-criteria.xsd %26quot;%26gt;
%26lt;criterialist%26gt;
%26lt;criteria%26gt;
%26lt;propertyname%26gt;startindex%26lt;/propertyname%26gt;
%26lt;operator%26gt;equals%26lt;/operator%26gt;
%26lt;value%26gt;0%26lt;/value%26gt;
%26lt;restriction%26gt;and%26lt;/restriction%26gt;
%26lt;/criteria%26gt;
%26lt;criteria%26gt;
%26lt;propertyname%26gt;offsetindex%26lt;/propertyname%26gt;
%26lt;operator%26gt;equals%26lt;/operator%26gt;
%26lt;value%26gt;10%26lt;/value%26gt;
%26lt;restriction%26gt;and%26lt;/restriction%26gt;
%26lt;/criteria%26gt;
%26lt;/criterialist%26gt;
%26lt;/tns:management-webservice-criteria%26gt;
Torrance
Joined: Feb 7, 2020
Messages: 27
Offline
Thank you le103. That is what I needed. No way I could have ever arrived at that solution. Thank you so much for your response.
Torrance
Joined: Feb 7, 2020
Messages: 27
Offline
Can you show an example that uses firstname or lastname?

%26lt;propertyname%26gt;firstname%26lt;/propertyname%26gt;
%26lt;operator%26gt;equals%26lt;/operator%26gt;
%26lt;value%26gt;myname%26lt;/value%26gt;

I am getting an error like it does not recognize the "firstname" property. Here is there error.

</tns:management-webservice-criteria>, Status: Error! "[QueryException: could not resolve property: lastname of: com.avaya.coreservice.persistence.user.CsUser]"
le103.avaya.com
Joined: Sep 4, 2019
Messages: 6
Offline
Torrance wrote:Can you show an example that uses firstname or lastname?

%26lt;propertyname%26gt;firstname%26lt;/propertyname%26gt;
%26lt;operator%26gt;equals%26lt;/operator%26gt;
%26lt;value%26gt;myname%26lt;/value%26gt;

I am getting an error like it does not recognize the "firstname" property. Here is there error.

</tns:management-webservice-criteria>, Status: Error! "[QueryException: could not resolve property: lastname of: com.avaya.coreservice.persistence.user.CsUser]"


You could not use that value, please try with "surname" for lastname and "giveName" for firstname

Thanks
Vu Le
Go to:   
Mobile view