If you are authenticating as a user (yourself) and want to check your own messages you don’t need to provide an ObjectId. To get information about your account (first name, last name etc…) it looks like this
https://192.168.0.196:8443/vmrest/user authenticate with login/PW setup in your Connection account – you do not need admin rights for this, but you only have access to your own account details/resources.
Get all messages:
https://192.168.0.196:8443/vmrest/mailbox/folders/inbox/messages?pagenumber=1&rowsperpage=20 Get all unread voice messages:
https://192.168.0.196:8443/vmrest/mailbox/folders/inbox/messages?pagenumber=1&rowsperpage=20&read=false&type=voice If instead you want to get messages for another user you need to attach to the Connection server for CUPI for admins functionality with an account that has the user administrator role as well as the “Mailbox Access Delegate Account” role. To fetch the objectId of all users 25 at a time, it looks like this:
https://192.168.0.196:8443/vmrest/users?rowsPerPage=25&pageNumber=1 Users that have an alias that starts with “j”:
[url=https://192.168.0.196:8443/vmrest/users?query=(alias%20startswith%20j)&rowsPerPage=25&pageNumber=1]
https://192.168.0.196:8443/vmrest/users?query=(alias%20startswith%20j)&rowsPerPage=25&pageNumber=1 And so on – using the ObjectID from one of the returned elements you can get messages like this:
https://192.168.0.196:8443/vmrest/mailbox/folders/inbox/messages?userobjectid=8d9f00d8-bbd5-437e-812b-029a39608932&pagenumber=1&rowsperpage=10 -J