Solved

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

Posted on 2015-02-20
1
70 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 38

Accepted Solution

by:
Vasil Michev (MVP) earned 500 total points
Comment Utility
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

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

This article explains in simple steps how to renew expiring Exchange Server Internal Transport Certificate.
Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
To show how to create a transport rule in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Rules tab.:  To cr…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now