CreateManagedFolder
The CreateManagedFolder element defines a request to add managed custom folders to a mailbox.
<CreateManagedFolder>
<FolderNames/>
<Mailbox/>
</CreateManagedFolder>
CreateManagedFolderRequestType
Attributes and elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child elements
Element | Description |
---|---|
FolderNames |
Contains an array of named managed folders to add to a mailbox. |
Mailbox |
Identifies a mail-enabled Active Directory directory service object. |
Parent elements
None.
Remarks
The account of the person who is making the request must have FullAccess permissions on the mailbox where the managed folders are created. You can use the _ -AccessRights _ parameter with the Exchange Management Shell Add-MailboxPermission cmdlet to assign the FullAccess permission.
Although you can use Exchange Web Services to add managed folders to a mailbox, you cannot use Exchange Web Services to access the list of managed folders that are available. To obtain a list of available managed folders, use the get-managedfolder Exchange Management Shell cmdlet. The list that is returned by the get-managedfolder cmdlet will contain both managed custom folders and managed default folders. You can only add folders of type managedcustomfolder to the mailbox by using the CreateManagedFolder operation.
Note
You can also get a list of managed folders by using the DirectoryServices API of the Microsoft .NET Framework.
You can use the FindFolder operation to find managed folders in a mailbox. Managed folders can be distinguished by setting the BaseShape element to AllProperties in the request. The response will contain a ManagedFolderInformation element to distinguish the managed folders from the Exchange store folders. You can delete managed folders in the same manner that you delete other folder types.
The schema that describes this element is located in the EWS virtual directory of the computer that is running MicrosoftExchange Server 2007 that has the Client Access server role installed.
Element information
Element | Example |
---|---|
Namespace |
http://schemas.microsoft.com/exchange/services/2006/messages |
Schema Name |
Messages schema |
Validation File |
Messages.xsd |
Can be Empty |
False |