PRB: ACL: Outlook 2000 Doesn't Properly Read ACL Settings

Article translations Article translations
Article ID: 237924 - View products that this article applies to.
This article was previously published under Q237924
Expand all | Collapse all

On This Page

SYMPTOMS

When you try to open the Calendar folder, where the permissions have been set using the ACL object with Microsoft Outlook 2000, the following error will appear:
"Unable to display folder".

RESOLUTION

Access to another user's calendar requires that you also have corresponding permissions to the users FreeBusy Data folder. To resolve this problem, you can use the ACL object to also set permissions on the FreeBusy Data folder. This folder is located at the root of the Microsoft Exchange Server mailbox and does not display in the Outlook client. If you grant read-only access to the calendar, set the same access level to the FreeBusy Data folder. If you grant write access to the calendar, you must grant editor-level permissions to the FreeBusy Data folder.

You can now access the Calendar folder with Outlook 2000 without an error.

MORE INFORMATION

Steps to Reproduce Behavior

  1. Register the ACL.dll from the Platform SDK on the computer that you are going to use to run the code that sets the permissions.
  2. Create a new Microsoft Visual Basic project.
  3. Add a reference to both "Microsoft Exchange 5.5 ACL Type Library 1.0" and "Microsoft CDO 1.21 library."
  4. Cut and paste the following code to the project:
    
    Dim strMailbox, As String
    Dim strServer As String
    Dim objFolder As Folder
    Dim objacls As ACLObject
    Dim myAce As ACE
    Dim objFolderAces As Object
    Dim CDOSession As Session
    Dim objstore As InfoStore
    
    Sub Main()
            '
            'This code depends on a reference to CDO (1.1, 1.2, or 1.21)
            '             
            Set CDOSession = CreateObject("MAPI.Session")
            strServer = "<Server Name>"
            strMailbox = "<Mailbox Name>"
            CDOSession.Logon "", "", True, True, 0, True, strServer & vbLf & strMailbox
            Set objstore = CDOSession.GetInfoStore()
            Set objFolder = objstore.RootFolder.Folders("Calendar")
        
            ' get the aclsobject for the folder
            Set objacls = CreateObject("MSExchange.aclobject")
            Set objacls.CDOItem = objFolder  ' set the CDO folder to CDOItem
            Set objFolderAces = objacls.ACEs ' get ACEs for folder
            
            For Each myAce In objFolderAces
                If myAce.ID = "ID_ACL_DEFAULT" Then
                    myAce.Rights = ROLE_OWNER
                    objacls.Update
                End If
            Next
    
            'Clean up
            Set objstore = Nothing
            Set objFolder = Nothing
            Set objacls = Nothing
            Set objFolderAces = Nothing
            
            'Logoff Session
            CDOSession.Logoff
            Set CDOSession = Nothing
    End Sub
    
    
    					
  5. Run the code against an Exchange mailbox. The code will change the permissions of "Default" to "Owner" on the Calendar folder.
  6. Try to access the Calendar folder from Microsoft Outlook 2000 (Go to the File/Open/Other User's Folders).

RESULT:

You will receive the following error:
"Unable to display folder"

Properties

Article ID: 237924 - Last Review: March 4, 2004 - Revision: 4.3
APPLIES TO
  • Microsoft Exchange Server 2003 Software Development Kit
  • Microsoft Outlook 2000 Standard Edition
  • Microsoft Collaboration Data Objects 1.21
  • Microsoft Collaboration Data Objects 1.1
  • Microsoft Collaboration Data Objects 1.2
Keywords: 
kbmsg kbprb KB237924

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com