Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2015-02-20
1
Medium Priority
?
80 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 44

Accepted Solution

by:
Vasil Michev (MVP) earned 1500 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

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

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

Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
With so many activities to perform, Exchange administrators are always busy in organizations. If everything, including Exchange Servers, Outlook clients, and Office 365 accounts work without any issues, they can sit and relax. But unfortunately, it…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
how to add IIS SMTP to handle application/Scanner relays into office 365.

916 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