RDOMailboxDelegate object

 

RDOMailboxDelegate object represents an Exchange mailbox delegate.

 

Returned by:

RDOMailboxDelegates.Item

RDOMailboxDelegates.Add

 

The example below adds a delegate to the primary mailbox in the profile and gives the delegate Author rights to the Inbox folder.

skPrimaryExchangeMailbox = 3
skDelegateExchangeMailbox = 4
dfpAuthor = 3
set Session = CreateObject("Redemption.RDOSession")
Session.MAPIOBJECT = Application.Session.MAPIOBJECT
Session.Credentials.Add "*.onmicrosoft.com""user@company.demo""MyPassword"
Session.Credentials.Add "*.outlook.com""user@company.demo""MyPassword"
set Store = Session.Stores.DefaultStore
if (Store.StoreKind <> skPrimaryExchangeMailbox) and (Store.StoreKind <> skDelegateExchangeMailbox) Then
  MsgBox "Delegates are only supported for the Exchange stores"
Else
  set ABDialog = Session.GetSelectNamesDialog
  ABDialog.Caption = "Please select a delegate user"
  ABDialog.ForceResolution = true
  ABDialog.InitialAddressList = Session.Addressbook.GAL
  ABDialog.AllowMultipleSelection = false
  if ABDialog.Display(TrueThen
    set Delegates = Store.Delegates
    set Delegate = Delegates.Add(ABDialog.Recipients(1).AddressEntry)
    Delegate.PermissionsInbox = dfpAuthor
    Delegates.Save
  End If
End If

 

Properties

Methods

Events

 


Derived from: IDispatch


Properties


DisplayName String, read/write. The display name of the delegate user.
 
PermissionsCalendar rdoDelegateFolderPermission, read/write. Specifies permission on the Calendar folder.

rdoDelegateFolderPermission:

 dfpNone = 0
dfpEditor =1
dfpReviewer = 2
dfpAuthor = 3
dfpCustom = 4

 

 
PermissionsContacts rdoDelegateFolderPermission, read/write. Specifies permission on the Contacts folder.
 
PermissionsInbox rdoDelegateFolderPermission, read/write. Specifies permission on the Inbox folder.
 
PermissionsJournal rdoDelegateFolderPermission, read/write. Specifies permission on the Journal folder.
 
PermissionsNotes rdoDelegateFolderPermission, read/write. Specifies permission on the Notes folder.
 
PermissionsTasks rdoDelegateFolderPermission, read/write. Specifies permission on the Tasks folder.
 
PrimarySmtpAddress String, read/write. The SMTP address of the delegate user.
 
ReceiveCopiesOfMeetingMessages Boolean, read/write. Specifies whether the delegate user receives copies of the meeting requests/updates.
 
SID String, read/write. The Windows SID of the delegate user.
 
ViewPrivateItems Boolean, read/write.
If true, the delegate user can view private items.
 
User RDOAddressEntry, read-only.
The RDOAddressEntry object corresponding to the delegate user.
 

Methods


Delete Deletes the delegate object.
 

 

 



rdoDelegateFolderPermission

 dfpNone = $00000000;
dfpEditor = $00000001;
dfpReviewer = $00000002;
dfpAuthor = $00000003;
dfpCustom = $00000004;