Last post Mar 12, 2009 12:45 PM by airouane
Mar 10, 2009 06:55 AM|airouane|LINK
does anybody know how can we get permission of public folder as we do for mailbox with GetMailboxPermission?
Mar 10, 2009 08:29 AM|alexey.popikov|LINK
Directory.GetAccessControl method may help you, airoane.
Mar 10, 2009 09:07 AM|airouane|LINK
GetAccessControl is for Windows directory not for Exchange Public Folder.
Does anybody have an idea ? I don't find anything in MPS SDK.
Mar 10, 2009 09:52 AM|DmitriG|LINK
Exchange 2007 Provider doesn't have such method. If you need it - you have to implement it. Do not afraid to do things outside of the MPS, in PowerShell for example.
Mar 12, 2009 12:45 PM|airouane|LINK
For peoples who are interested, the code in vb.net to request public folder client permissions (see aslo
commandResults is a collections of PublicFolderClientPermission, each PublicFolderClientPermission contains a collection of AccessRights (who can be a role like "Author" or severals accessRight like "CreateSubFolders").
For example, you can retrive a permsion using commandResults(x).BaseObject.AccessRights(y).Permission
To retrieve AccessRight name from ACL, I propose you this vb.net code :