Skip to Main Content
Exchange Server Cookbook
book

Exchange Server Cookbook

by Paul Robichaux, Missy Koslosky, Devin L. Ganger
June 2005
Intermediate to advanced content levelIntermediate to advanced
464 pages
13h 2m
English
O'Reilly Media, Inc.
Content preview from Exchange Server Cookbook

5.15. Getting the List of Delegates for a Mailbox

Problem

You need to know which users have delegate access to a particular mailbox.

Solution

Using a graphical user interface

In Outlook 2003, do the following:

  1. Log on to a computer that has a profile for the target mailbox. Alternatively, create a profile for the target mailbox.

  2. Open Outlook using the mailbox profile.

  3. Select the Tools Options command.

  4. Click the Delegates tab; the existing delegates will be listed.

Using a command-line interface

You can use the ldifde utility to dump the publicDelegates attribute for a selected set of users. For example, this command dumps the delegate list for the robichaux.net domain to the file delegates.txt:

> ldifde -f delegates.txt -d "cn=users,dc=robichaux,dc=net" 
-l name,publicDelegates,publicDelegatesBL -r "(|(publicDelegates=*)
(publicDelegatesBL=*))"

Using VBScript

' This code lists the delegates for the selected mailbox
' ------ SCRIPT CONFIGURATION ------
 strDCName = "<serverName>"    ' e.g., "Batman"
 strUserName = "/cn=<userName>, CN=Users, <ForestRootDN>"
' ------ END CONFIGURATION ---------

' find the target user
 strQuery = "LDAP://" & strDCName & strUserName
 Set theUser = GetObject(strQuery) 
 WScript.echo "Delegates for " & strUserName
 On Error Resume Next
 delegateList = theUser.Get("publicDelegates")
    
 If Err.Number <> -2147463155 Then
   For Each Desc In delegateList
    WScript.Echo desc
   Next
 Else
   WScript.Echo "No delegates"
End If

Discussion

The list of delegates is stored as a single AD attribute on ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Microsoft® Exchange Server 2010: Best Practices

Microsoft® Exchange Server 2010: Best Practices

Siegfried Jagott, Joel Stidley
Microsoft® Exchange Server 2003 Unleashed

Microsoft® Exchange Server 2003 Unleashed

Rand H. Morimoto - MCSE, Joe R. Coca, CISSP Kenton Gardinier - MCSE MCSA, MCSA Michael Noel - MCSE+I
Microsoft® Exchange Server 2013 Unleashed

Microsoft® Exchange Server 2013 Unleashed

Rand Morimoto, Michael Noel, Guy Yardeni, Chris Amaris, Andrew Abbate

Publisher Resources

ISBN: 0596007175Errata Page