Пример #1
0
 private void ResolveUnlinkedUser(ADUser user)
 {
     if (user.RecipientTypeDetails == RecipientTypeDetails.LinkedMailbox)
     {
         user.RecipientTypeDetails = RecipientTypeDetails.UserMailbox;
     }
     if (this.IsAccountDisabled(user))
     {
         user.RecipientDisplayType = new RecipientDisplayType?(SetUser.TryToClearACLableFlag(user.RecipientDisplayType.Value));
     }
 }
Пример #2
0
 private void ResolveLinkedUser(ADUser user)
 {
     if (user.RecipientTypeDetails == RecipientTypeDetails.UserMailbox)
     {
         user.RecipientTypeDetails = RecipientTypeDetails.LinkedMailbox;
     }
     else if (user.RecipientTypeDetails == RecipientTypeDetails.RoomMailbox)
     {
         user.RecipientTypeDetails = RecipientTypeDetails.LinkedRoomMailbox;
     }
     this.GrantPermissionToLinkedUser(user);
     if (user.RecipientTypeDetails != RecipientTypeDetails.LinkedRoomMailbox)
     {
         user.RecipientDisplayType = new RecipientDisplayType?(SetUser.TryToSetACLableFlag(user.RecipientDisplayType.Value));
     }
 }