Scenario 1 (I suppose you mean a single folder):
Would the following cmdlets work for you in this scenario?
Add-MailboxFolderPermission user1@contoso.com -User user2@contoso.com -AccessRights Reviewer
Add-MailboxFolderPermission user1@contoso.com:\Project1 -User user2@contoso.com -AccessRights Editor
Scenario 2 (I suppose you mean the main folder and its sub-folders)
Add-MailboxFolderPermission user1@contoso.com -User user2@contoso.com -AccessRights Reviewer
$folders = Get-MailboxFolderStatistics user1@contoso.com | Where { $_.FolderPath.Contains("Project1") -eq $True }
Foreach($folder in $folders)
{
$path = "user01@contoso.com:" + $folder.folderpath.Replace("/","\")
Add-MailboxFolderPermission $path -User user2@contoso.com -AccessRights Editor
}
It would also give Editor permissions of the sub-folders of Project2 to user2.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.