Solved

How can I use applicaitonimpersonate role on a on-premise application to update calendars in Office 365?

Posted on 2015-02-20
1
72 Views
Last Modified: 2015-03-03
We are in the process of moving to Office 365, currently have Exchange 2013 servers on-premise.
We have an on-premise application that uses the applicationimpersonate role to update user's calendars.
We want to be able to use this same on premise application when we move our mail boxes to O365.
We will retain an on premise Exchange server to relay SMTP email from local servers to O365 mail boxes.

We currently are testing with a MS O365 trial. I have set up an admin role for applicationimpersonate and added a member to this role in O365.
Below is what I put in for the Exchange/impersonation information in my application web.config:

  <add key="ExchangeServerUrl" value="https://onpremise servername/ews/exchange.asmx" />
  <add key="ExchangeServerUserId" value="O365Account name"/>
  <add key="ExchangeServerPassword" value="PW"/>

We are getting 401:Unauthorized message back  from the EWS.

I believe we need to set up a domain/forest trust between our on premise and the O365 environment but not sure.

Any suggestions on what we need to get this applicationimpersonate role to work with our on premise application and O365 will be greatly appreciated.

Thank you,
0
Comment
Question by:swfwmd2
1 Comment
 
LVL 40

Accepted Solution

by:
Vasil Michev (MVP) earned 500 total points
ID: 40622866
Just create a O365 account and grant him the Impresonation role in the Exchange Online EAC. I dont think you will be able to make it work in any other way, hybrid or not.

The EWS URL you need is https://outlook.office365.com/EWS/Exchange.asmx
0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Cloud-based technologies and services will continue to grow in popularity in 2017 thanks to the simple, scalable and cost-effective solutions they deliver. Here are three areas where cloud adoption is poised to really take off.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question