Akanksha Agarwal | And Yes, Anil is right. If you give the voicemail user role of an administrator, then he will be able to GET /vmrest/users.
From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com] Sent: Wednesday, October 10, 2012 9:40 PM To: cdicuser@developer.cisco.com Subject: New Message from Akanksha Agarwal in Cisco Unity Connection(CUC) - CUMI Questions: RE: 401 Unauthorized for service account
Akanksha Agarwal has created a new message in the forum "CUMI Questions": -------------------------------------------------------------- Shivinder,
If you want to access a particular user's voucemail records then you just need his credentials. You need not modify his roles. You can access his voicemail records using the following APIs: For messages in Inbox: /vmrest/mailbox/folders/inbox/messages For messages in Deleted Items folder: /vmrest/mailbox/folders/deleted/messages For messages in Sent Items folder: /vmrest/mailbox/folders/sent/messages When you want to access a user's mailbox, then you do not need to create a user with administrativr template. You need to create one with voucemailusertemplate. And this is the reason why you are getting a not authorized error.
I guess the API yu are using is /vmrest/messages and giving the userobjectid to fetch a user's mailbox details. Please use the above mentioned APIs to GET the messages.
-- To respond to this post, please click the following link: http://developer.cisco.com/web/cuc/forums/-/message_boards/view_message/7493855 or simply reply to this email. |
| Please sign in to flag this as inappropriate. |