Click to Rate and Give Feedback
TechNet
TechNet Library
Exchange Server
Operations
 How to Add Permissions for Client U...

  Switch on low bandwidth view
Collapse All/Expand All Collapse All
How to Add Permissions for Client Users to Access Public Folder Content

Applies to: Exchange Server 2007 SP2, Exchange Server 2007 SP1, Exchange Server 2007 Topic Last Modified: 2009-06-05

This topic explains how to use the Exchange Management Shell to add permissions for users of client programs (such as Microsoft Outlook) to access and modify public folder content. When adding these permissions, you can either use predefined permission roles (which consist of specific access rights) or you can customize permissions by manually applying the available access rights. To specify the permissions for the client user, you can use the Add-PublicFolderClientPermission cmdlet or the AddUsersToPFRecursive.ps1 user management script. For more information about the permission roles and access rights, see Configuring Public Folder Permissions.

Aa998834.note(en-us,EXCHG.80).gifNote:
If a client user already has a specific access right to a public folder, you cannot add the same access right again. Therefore, if you use the AddUsersToPFRecursive.ps1 script, and the user already has one of the access rights that you are trying to grant, a warning will appear stating that the current access rights will be removed before new access rights are granted.

To perform the following procedure in the RTM version of Exchange 2007, the account you use must be delegated the following:

  • Exchange Server Administrator role and local Administrators group for the target server

For more information about permissions, delegating roles, and the rights that are required to administer Exchange Server 2007, see Permission Considerations.

Also, before you perform this procedure, be sure to read the topic Configuring Public Folder Permissions.

To perform following procedure in Exchange 2007 SP1, the account you use must be delegated the following:

  • Exchange Public Folder Administrator role and local Administrators group for the target server

For more information about permissions, delegating roles, and the rights that are required to administer Exchange 2007, see Permission Considerations.

Also, before you perform this procedure, be sure to read the topic Configuring Public Folder Permissions.

  • To add Publishing Editor permissions for the user Kim to access the public folder named West Coast, run the following command:

    Add-PublicFolderClientPermission -Identity "\Marketing\West Coast" -AccessRights PublishingEditor -User Kim

For detailed syntax and parameter information, see Add-PublicFolderClientPermission.

  • To add Reviewer permissions for the user David to access the top-level public folder named Sales and all of the public folders contained within the Sales tree, run the following command:

    AddUsersToPFRecursive.ps1 -TopPublicFolder "\Sales" -User "David" -Permission Reviewer

For more information about how to use public folder management scripts, see Scripts for Managing Public Folders in the Exchange Management Shell.

The Add-PublicFolderClientPermisson cmdlet also supports pipelining. Therefore, you can use this cmdlet to add many users to a particular public folder or to add users to many public folders. The following examples illustrate how to use pipelining with this cmdlet.

Example 1

The following command parses all the public folders in an organization to obtain the list of public folders that are named Sales. Then, the command assigns a user (Kim) the Reviewer role to each Sales public folder.

Get-PublicFolder '\' -recurse -resultsize unlimited| where { $_.Name -eq "Sales" } | Add-PublicFolderClientPermission -AccessRights Reviewer -User "Kim"
Aa998834.note(en-us,EXCHG.80).gifNote:
Pipelining supports objects and not only text strings. Therefore, you can use pipelining to perform complex operations. For examples of these operations, examine the contents of the %ProgramFiles%\Microsoft\Exchange Server\Scripts\AddUsersToPFRecursive.ps1 script.

Example 2

To add a distribution group to a public folder, use the same command as in Example 1. However, instead of specifying the user, specify the appropriate distribution group. The following command parses all the public folders in an organization to obtain the list of public folders that are named Sales. Then, the command assigns a distribution group (DG-1) the Reviewer role to each Sales public folder.

Get-PublicFolder '\' -recurse -resultsize unlimited| where { $_.Name -eq "Sales" } | Add-PublicFolderClientPermission -AccessRights Reviewer -User "DG-1"

To learn more about public folders, see Understanding Public Folders.

For more information about managing public folders, see Managing Public Folders.

For more information about configuring public folder permissions, see Configuring Public Folder Permissions.

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Problems with AddUsersToPFRecursive.ps1      RISNet   |   Edit   |   Show History
This script has problems with public folder name that contain space even when enclosed in "" as in the example so that
AddUsersToPFRecursive.ps1 -TopPublicFolder "\Sales Receipts" -User "David" -Permission Reviewer

Gives the error

Get-PublicFolder : A parameter cannot be found that matches parameter name 'Receipts'.
At line:1 char:17
+ get-publicfolder <<<< -identity \Sales Receipts -Recurse -resultsize unlimited

The only solution was to simplify the name to \Sales make the change then return the name to \Sales Receipts

Tags What's this?: Add a tag
Flag as ContentBug
Solution for Folders with blank symbols!      ullifichte ... Najeebulla   |   Edit   |   Show History

Hi,

if a folder has blancs you must add a ' between the "" (for. example: "'test folder'")

I gave the path as "'\xyz team folders\project country'" but still it didn't work. Any clue!

Tags What's this?: Add a tag
Flag as ContentBug
How to fix the script      DPinckard   |   Edit   |   Show History
This script can be edited to resolve the issue of Public Folder names containing spaces.

Line 122 should be changed from:
$getpfcmd = "get-publicfolder -server $Server -identity $TopPublicFolder -Recurse -resultsize unlimited"
to:
$getpfcmd = "get-publicfolder -server $Server -identity ""$TopPublicFolder"" -Recurse -resultsize unlimited"

Line 126 should also be changed from:
$getpfcmd = "get-publicfolder -identity $TopPublicFolder -Recurse -resultsize unlimited"
to
$getpfcmd = "get-publicfolder -identity ""$TopPublicFolder"" -Recurse -resultsize unlimited"

With these changes, the script should function as expected.
Tags What's this?: Add a tag
Flag as ContentBug
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker