question

ManjulaKumari-3925 avatar image
0 Votes"
ManjulaKumari-3925 asked KaelYao-MSFT commented

Exchange On Premisis

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.

office-exchange-server-administration
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

imamitsingh avatar image
1 Vote"
imamitsingh answered

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.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

KaelYao-MSFT avatar image
0 Votes"
KaelYao-MSFT answered KaelYao-MSFT commented

Hi @ManjulaKumari-3925

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.


19.png (9.5 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @ManjulaKumari-3925

I am writing here to confirm with you how thing going now?
If you have any questions or needed further help on this issue, please feel free to post back.

0 Votes 0 ·