Share via

Set-CalendarProcessing

Glenn Maxwell 13,761 Reputation points
2025-09-02T22:35:12.15+00:00

Hi All

I have a room mailbox (let’s say room1) and used the following syntax to restrict the room:

Set-CalendarProcessing -Identity "room1(at)contoso.com" -BookInPolicy "user1(at)contoso.com","user2(at)contoso.com -AllBookInPolicy $false -AddAdditionalResponse $True -AdditionalResponse "This room is restricted."

After a week, I received a requirement to add user3 and user4 to the booking policy. How can I add user3 and user4 to the existing booking policy? Please guide me.

Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.


Answer accepted by question author

Anonymous
2025-09-03T08:20:29.7066667+00:00

Hi @Glenn Maxwell

Thank you for reaching out with your question via the Microsoft Q&A forum.

To add new users to the existing booking policy for your room mailbox without affecting the current allowed users, please follow these steps:

Retrieve the current list of users allowed to book the room:

$existing = (Get-CalendarProcessing -Identity "******@yourdomain.com").BookInPolicy

Add the new users to this list:

$updated = $existing + "******@yourdomain.com", "******@yourdomain.com"

Update the booking policy with the combined list:

Set-CalendarProcessing -Identity "******@yourdomain.com" -BookInPolicy $updated

This will preserve all existing users while adding the new ones.

To verify the users currently allowed to book the room and see their email addresses, run the following:

$bookInPolicyDNs = (Get-CalendarProcessing -Identity "******@yourdomain.com").BookInPolicy

foreach ($dn in $bookInPolicyDNs) {
    $user = Get-Recipient -Identity $dn
    $user.PrimarySmtpAddress
}

This will display the email addresses of the users in the booking policy, making it easier to confirm who has access.

If this doesn’t work as expected or if you need to make further adjustments, feel free to reply here and I’ll be happy to assist you. 


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.

Was this answer helpful?


1 additional answer

Sort by: Most helpful
  1. Kavya 655 Reputation points
    2025-09-03T05:54:41.9066667+00:00

    You cannot directly add new users using Add("","") syntax. You can use the following script.

    $userslist=@()
    $userslist +=(Get-CalendarProcessing -Identity <RoomMailboxIdentity>).bookinpolicy
    $userslist +="******@contoso.com",""******@contoso.com" #Users to be added newly
    Set-CalendarProcessing -Identity <RoomMailboxIdentity> -BookInPolicy $userslist
    

    The above script will add users to the existing BookinPolicy.

    Was this answer helpful?

    0 comments No comments

Your answer

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