Exchange On Premisis

Manjula Kumari 1 Reputation point
2021-10-21T22:49:52.297+00:00

I have 50 users, of which I want to allow only 10 users to book any meeting room in the company for 370 days in advance, the rest 40 users will go with the default of 180 days or less.

How can I do this via the API, I know this is not possible via GUI.

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,335 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Amit Singh 4,846 Reputation points
    2021-10-22T05:31:31.7+00:00

    Step 1: Create a meeting Room

    Login to Office365 portal by https://portal.office.com To to Admin -> Exchange -> Resources, click on + -> Room Mailbox and create a new meeting room.

    Step 2: Create a security group

    Create a security group by going into Admin -> Exchange -> Groups -> Click on + -> select Security Group. You must need to add a owner and add users.

    Step 3: Allow security group to book meeting rooms using PowerShell

    • $LiveCred = Get-Credential - to loginto Office365 enter your username and password, you must have Global admin rights.
    • $Session = New-PSSession - ConfigurationName Microsoft.Exchange-ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection
    • Import-PSSession $Session
    • Get-Mailbox RoomName | Set-CalendarProcessing -AllBookInPolicy:$false -AllRequestInPolicy:$false -BookInPolicy Email of Group created in step2

    Step 4: Give user access to meeting room calendars

    Now users from the group can book a room but they will not able to see the calendar of meeting room and some users like to book a room through calendar. I this case you have to give a permissions to access meeting room's calendar Following command will do the job, Set-MailboxFolderPermission -Identity Meetingroom:\calendar -User default -AccessRights LimitedD

    This way you will be able to allow a certain group of users to book meeting rooms.

    1 person found this answer helpful.
    0 comments No comments

  2. Kael Yao-MSFT 37,491 Reputation points Microsoft Vendor
    2021-10-22T07:12:33.363+00:00

    Hi @Manjula Kumari

    In my opinion, this seems not possible.

    Since the related parameter BookingWindowInDays in the Set-CalendarProcessing command will set the maximum number of days in advance of this room mailbox for all users, you cannot specify different values for different users.
    142882-19.png
    Thus it may not be possible to do this.

    A workaround I could think of is to specify rooms to only allow the 10 users to book, while I suppose it may not apply to your situation.


    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.