Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to Office 365 #273

Closed
keithslater opened this issue May 19, 2015 · 2 comments
Closed

Connecting to Office 365 #273

keithslater opened this issue May 19, 2015 · 2 comments

Comments

@keithslater
Copy link

Hello, previously I have used php-ews with regular Exchange Servers. Now I want to connect to an Office 365 server however the server is Small Business Premium.

What is the best way to create a user in Office 365 so that it can manage everyone's calendars and emails? I have read that impersonation is the best way but I can't do that with Small Business Premium. Should I create a delegate admin? Would that even work?

Thanks

@Demonslay335
Copy link

Impersonation is definitely the best way to go, and I think that might be the way of least resistance. But, if you don't have a way to set that up without upgrading, you can certainly try delegation. I think Delegation is supposed to only be for a user managing their own mailbox, and allowing the system their privileges; think of it like accessing webmail, you only give the application permission to use your credentials to access your own stuff.

I've not personally messed with delegation since my requirements lead to impersonation (much more control on everything, don't have to setup explicit permissions for each user). This may especially be a problem if you wish for the app to send emails for the user, as I believe delegation will act as "on behalf of" instead of, well, impersonating the user.

@jamesiarmes
Copy link
Owner

@Demonslay335 assessment is correct. Delegation is intended to allow users to giver other users permissions to perform certain actions within their mailbox, such as an assistant or a co-worker when the user is on vacation.

If you can't use impersonation, the only real alternative is to maintain a list of user credentials that you can use for connecting to each user. If you're going this route, be sure to encrypt any passwords that you are storing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants