문제

Exchnage 웹 서비스와 함께 대표를 사용한 사람이 있습니까? 한 사용자가 다른 사용자의 캘린더를 대가로 제어 할 수 있기를 바랍니다. 나는이 문제가 조금 까다로워진다는 것을 알게되었고, 다른 사람들이 어떻게 그것을 제대로 작동시킬 수 있었는지보고 싶습니다.

도움이 되었습니까?

해결책

방금 시작했지만 대의원 계정을 통해 리소스 캘린더에 액세스 할 수있었습니다.

나는 추천을 사용했다 이 기사 대의원 및 자원 계정 정보. (자원 계정은 광고에서 비활성화되어 있기 때문에 까다 롭고 대의원 계정을 사용하여 액세스해야합니다)

서버에서 대의원 계정을 설정 한 후 대의원 계정의 자격 증명을 사용하여 ExchangeserBinding을 설정했습니다.

ExchangeServiceBinding binding = new ExchangeServiceBinding();
binding.Url = @"https://dc1.litwareinc.com/ews/exchange.asmx";
// Setup binding with username and password of the delegate account
binding.Credentials = 
    new NetworkCredential(delegateuserName, delegatepassword, "litwareinc.com");

(테스트를 위해 준비된 가상 서버 이미지를 준비한 Microsofts를 사용하고 있습니다)

그런 다음 사서함에 액세스 할 때 FindItemType 요청을 설정하고 액세스하려는 계정의 SMTP 주소를 사용합니다.

// Prepare request
var findItemRequest = new FindItemType();
// Setup the mailbox using the smtp address of the account wanted
var mailbox = new EmailAddressType {EmailAddress = mailboxId};
findItemRequest.ParentFolderIds = 
    new[] {new DistinguishedFolderIdType {Mailbox = mailbox}};
((DistinguishedFolderIdType) findItemRequest.ParentFolderIds[0]).Id = 
    DistinguishedFolderIdNameType.calendar;
findItemRequest.Traversal = ItemQueryTraversalType.Shallow;

// Add ItemResponseShapeType and Calendarview to request here ...

// The create a FindItemResponseType using the binding and the request
var response = binding.FindItem(findItemRequest);

요컨대 :

  1. Exchange 서버에서 Delegate Access가있는 계정 설정, OWA를 통해 또는 Exchange Shell 스크립트를 통해 수행 할 수 있습니다.
  2. ExchangesViceBinding 개체에서 대의원 액세스와 함께 계정을 사용하십시오.
  3. 대상 계정 smtp-addres as emailaddresstype의 finditemtype를 사용하여 대상 계정에 액세스

Jesper Hauge를 고려하십시오

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top