Calendar permissions

Rising Flight 3,891 Reputation points
2021-08-16T19:00:29.897+00:00

Hi All

I want to provide calendar access for few users to a room mailbox. is the below syntax correct. my csv file is in the below format. do i also need to use -Confirm:$false

users
user1@Company portal .com
user2@Company portal .com

$UserList = import-csv C:\temp\input.csv   
ForEach ($User in $UserList)  
{  
Add-MailboxFolderPermission -identity room-mailbox@contoso.com:\calendar -user $_.users -accessrights Reviewer  
}  
Microsoft Exchange Online Management
Microsoft Exchange Online Management
Microsoft Exchange Online: A Microsoft email and calendaring hosted service.Management: The act or process of organizing, handling, directing or controlling something.
4,238 questions
Exchange Server Management
Exchange Server Management
Exchange Server: A family of Microsoft client/server messaging and collaboration software.Management: The act or process of organizing, handling, directing or controlling something.
7,386 questions
{count} votes

Accepted answer
  1. JeffYang-MSFT 6,241 Reputation points Microsoft Vendor
    2021-08-17T02:16:50.41+00:00

    Hi @Rising Flight ,

    Both is OK. The Confirm just switch specifies whether to show or hide the confirmation prompt.

    123765-image.png

    123707-image.png

    Hope this can be helpful.


    If an Answer 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.

    0 comments No comments

0 additional answers

Sort by: Most helpful