cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
525
Views
5
Helpful
1
Replies

Looking for assistance with CUMI API for Unity connection

Using an admin account with all roles assigned, I can do the following API calls with no problem:
https://hapiptutypub.na.bestbuy.com/vmrest/users?query=(alias startswith timtest1)
https://hapiptutypub.na.bestbuy.com/vmrest/mailbox/folders/inbox/messages?userobjectid=d169d44c-018d-4738-9c7b-d5f173e439cf

These two don't work:
https://hapiptutypub.na.bestbuy.com/vmrest/messages/0:90e1c9e9-fac0-4282-bf5c-4893cf77dac7
https://hapiptutypub.na.bestbuy.com/vmrest/messages/0:90e1c9e9-fac0-4282-bf5c-4893cf77dac7/attachments/0

Those last two give me the following error:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ErrorDetails>
<errors>
<code>INVALID_PARAMETER</code>
<message>unable to create CML session for user: id=e85d4286-53d4-4ed7-8827-f313fdde5561, message=CMLException: 0x46401 code in file CsCmlJni/CsCmlJniSessionFactory.cpp at line 116.</message>
</errors>
</ErrorDetails>


The only way the last two calls work is if I use the credentials for that account; the admin account doesn't work at all.  Is there any way that I can use a common account to access attachments across multiple mailboxes?

1 Reply 1

Adam Pawlowski
VIP Alumni
VIP Alumni

Replying so that I can respond to this tomorrow when I can see how I did this. I'm not sure where the ":" is coming from in the UUID of the user object.

 

At the moment, I half remember that the Mailbox Delegate role was needed, but it may have to have been administrator. I never ran into that sort of error though.

 

You may want to edit the FQDN or maybe not, it's up to you but its public and searchable if it matters at all.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: