question

TKSun-7323 avatar image
0 Votes"
TKSun-7323 asked TKSun-7323 commented

ExchangeServer load Email

How to use C#Progarming to load Email which on ExchangeServer2019

ExchangeServer sign in Enterprise email Administrator Account
Now I want to read Subaccount‘s Email without Subaccount‘s password

Waitting for your answers

office-exchange-server-administrationoffice-exchange-server-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @TKSun-7323


Since your question is more related to Exchange development, I have added the tag "office-exchange-server-dev" to it.
Thanks for your understanding and hope you will get the answer soon.


For more information about this topic, here is also a link which may be helpful: Get an item by using the EWS Managed API


0 Votes 0 ·

1 Answer

GlenScales-6756 avatar image
0 Votes"
GlenScales-6756 answered TKSun-7323 commented

ExchangeServer sign in Enterprise email Administrator Account

Best practice is to never use Administrator accounts in any application, in Exchange especially it won't work because an Admin account (or any user) only has explicit rights to their own mailbox to access another users mailbox permissions need be granted explicitly either via Add-MailboxPermission or Add-MailboxFolderPermission (regardless of your administration rights)

The other option if you need to access many mailboxes within a particular Exchange Organization is to use Impersonation in EWS see https://docs.microsoft.com/en-us/exchange/client-developer/exchange-web-services/impersonation-and-ews-in-exchange again for this don't use your administer account create an application specific account and then grant that impersonation rights.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for your answers,Glen.

0 Votes 0 ·