Calendar permissions

Rising Flight 5,216 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 ******@contoso.com:\calendar -user $_.users -accessrights Reviewer  
}  
Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,209 questions
Exchange | Exchange Server | Management
{count} votes

Accepted answer
  1. JeffYang-MSFT 6,261 Reputation points Moderator
    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.