Lately I am hearing about a lot of partners wanting to create applications where an Administrator would like to open up end user mailboxes and do various operations on it. E.g. Admin wants to know if the Mailboxes are going over limits, Admin wants to extract voice mails as wave files for some legal issues etc.
The CUMI by default is setup to be used with the end user authentication. For an admin to be able to look at the users mailboxes, you will need to add the "Mailbox access delegate account" role to the admin account.
If the admin wants to open the mailbox they would execute something like this while authenticating with the Admin user/password -
If the admin wants to directly open the inbox folder, they can use a query like -
The user object Id for the users can get got using the CUPI queries.
E.g. You can search for a user using a query like -