June 2005
Intermediate to advanced
464 pages
13h 2m
English
You need to know which users have delegate access to a particular mailbox.
In Outlook 2003, do the following:
Log on to a computer that has a profile for the target mailbox. Alternatively, create a profile for the target mailbox.
Open Outlook using the mailbox profile.
Select the Tools→ Options command.
Click the Delegates tab; the existing delegates will be listed.
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=*))"
' 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
The list of delegates is stored as a single AD attribute on ...