Hello Sascha,
the best replacement for the findUser method of SOAP is the SearchUsers message of the PbxAdminApi.
See: http://sdk.innovaphone.com/doc/appwebsocket/PbxAdminApi.htm#SearchUsers
For enumerating all user objects start with
- {"api":"PbxAdminApi","mt":"SearchUsers","cn":""}
You will get back an array with up to 20 objects, for example
- {"api":"PbxAdminApi","mt":"SearchUsersResult","user":[{"cn":"Atlantis","guid":"60bab4d7bc7d5e01ef3d009033410fcc","h323":"atlantis"},{"cn":"Endeavour","guid":"7b38f2d7bc7d5e01ee3d009033410fcc","h323":"endeavour"},{"cn":"User1","guid":"699f08fdc97d5e013636009033410fcc","h323":"user1"},{"cn":"User10","guid":"61698150ca7d5e013f36009033410fcc","h323":"user10"},{"cn":"User11","guid":"2389ba5aca7d5e014036009033410fcc","h323":"user11"},{"cn":"User12","guid":"a929cc63ca7d5e014136009033410fcc","h323":"user12"},{"cn":"User13","guid":"fdb0f469ca7d5e014236009033410fcc","h323":"user13"},{"cn":"User14","guid":"abe67d6fca7d5e014336009033410fcc","h323":"user14"},{"cn":"User15","guid":"12e6c778ca7d5e014436009033410fcc","h323":"User15"},{"cn":"User16","guid":"ed6d9580ca7d5e014536009033410fcc","h323":"user16"},{"cn":"User17","guid":"77dd8988ca7d5e014636009033410fcc","h323":"user17"},{"cn":"User18","guid":"3aade38fca7d5e014736009033410fcc","h323":"user18"},{"cn":"User19","guid":"f834e696ca7d5e014836009033410fcc","h323":"user19"},{"cn":"User2","guid":"7fd02404ca7d5e013736009033410fcc","h323":"user2"},{"cn":"User20","guid":"c7f367a4ca7d5e014936009033410fcc","h323":"user20"},{"cn":"User3","guid":"fb413e0cca7d5e013836009033410fcc","h323":"user3"},{"cn":"User4","guid":"dbc8ab17ca7d5e013936009033410fcc","h323":"user4"},{"cn":"User5","guid":"73935322ca7d5e013a36009033410fcc","h323":"user5"},{"cn":"User6","guid":"d866e22bca7d5e013b36009033410fcc","h323":"user6"},{"cn":"User7","guid":"efb15932ca7d5e013c36009033410fcc","h323":"user7"}]}
Contiue with searches for the cn of the last object in the array, until you don't get more results.
- {"api":"PbxAdminApi","mt":"SearchUsers","cn":"User7"}
- {"api":"PbxAdminApi","mt":"SearchUsersResult","user":[{"cn":"User8","guid":"7679293fca7d5e013d36009033410fcc","h323":"user8"},{"cn":"User9","guid":"d8eaa547ca7d5e013e36009033410fcc","h323":"user9"}]}
- {"api":"PbxAdminApi","mt":"SearchUsers","cn":"User9"}
{"api":"PbxAdminApi","mt":"SearchUsersResult"}
For reading the full details of the objects you can use the GetObject message afterwards.
- {"api":"PbxAdminApi","mt":"GetObject","guid":"60bab4d7bc7d5e01ef3d009033410fcc"}
- {"api":"PbxAdminApi","mt":"GetObjectResult","guid":"60bab4d7bc7d5e01ef3d009033410fcc","cn":"Atlantis","h323":"atlantis","e164":"201","loc":"master","node":"root","apps":"phone","hide":false,"no-dev":false,"mypbx":true,"devices":[{"hw":"atlantis","text":"atlantis","app":"phone"}]}
Hoping this was helpful.
I attached a small sample code in JavaScript for demonstration. It requires an app object "testapp" with password "pwd" and the "admin" checkmark actiavted on the PBX.
BR
Matthias
pbx-api-test.zip