question

GlennMaxwell-2309 avatar image
0 Votes"
GlennMaxwell-2309 asked emilyhua-msft edited

share inbox folders

Hi All

i have a user lets say user1@contoso.com who has a folder in his inbox lets say Test and in this Test folder he has some 100 folders and again he has many sub folders.
i want to share this Test folder and all the folders inside Test Folder to user2@contoso.com

Will the below syntax help me

 ForEach($f in (Get-MailboxFolderStatistics lance.brolin | Where { $_.FolderPath.Contains("Test") -eq $True } ) ) {
 $fname = "user1:" + $f.FolderPath.Replace("/","\");
 Add-MailboxFolderPermission $fname -User user2 -AccessRights Editor }
office-exchange-server-administrationoffice-exchange-online-itprooffice-exchange-server-mailflow
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

will FullAccess also work?

0 Votes 0 ·

1 Answer

ZhengqiLou-MSFT avatar image
0 Votes"
ZhengqiLou-MSFT answered

Hi @GlennMaxwell-2309 ,

Good day.

First I have to apologize that I don't know much about PowerShell scripts. But I could give you some suggests or helps on Exchange cmdlets:)

  1. Based on my tests, the same level folder with this Test in Inbox folder, their FolderPath should be user1:\123 while not user1:\inbox\123. And the subfolders of Test or 123 will show the corresponding folder path like user1:\123\1 or user1:\Test\1

  2. There is FullAccess of the AccessRights parameter. It should be Owner if you want a full permission. See this: https://docs.microsoft.com/en-us/powershell/module/exchange/add-mailboxfolderpermission?view=exchange-ps#parameters

Best regards,
Lou


If the response is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.