Office 365 – how to set working hours for all users

calendarexchange-2013microsoft-office-365

MS Office 365 has a default working hours set for all users for 8am to 5pm.

When working with the Office 365 API this setting limits the ability to see users free/busy time outside these hours.

How can we set the default working hours for all users or remove this limitation altogether?

Best Answer

Maybe you can connect to the Exchange Online Management Shell and run the following script to achieve what you want, something like this perhaps (without knowing the working hours you want to configure):

Get-Mailbox | Where {$_.RecipientTypeDetails -eq "UserMailbox"} | 
Set-MailboxCalendarConfiguration -WorkingHoursStartTime 00:00:00 -WorkingHoursEndTime 00:00:00 -ScheduleOnlyDuringWorkHours $false

The -ScheduleOnlyDuringWorkHours $false flag will allow for weekend scheduling.