Office 365 - add appointment to all users AND force accept the appointment as Global Administrator

Brian Kinney 0 Reputation points
2024-01-08T19:35:14.85+00:00

UnixDude here - I need a script to push all the Banking Holidays into our employee's calendars to mark them all as "out of office." No one seems to have any answer to this. Learn pages keep assuming individual users instead of a bulk update. Powershell would be nice. Need to rerun this whenever we have a new hire.

For each Holiday

For each user

Create appointment (Out of Office, no suggest time) for user from ******@company.com.

Accept appointment for user

Next User

Next Holiday

This is to resolve the Microsoft Bookings issue that makes you go to every calendar, select all staff by clicking each one, and make appointment there. For 250+ users, and 20 calendars, and 15 holidays, that's THOUSANDS of clicks - and it's not smart enough to update any new staff with these "out of office" days.

Anyone have any great ideas or alternate solutions?

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,209 questions
Microsoft 365 and Office | Install, redeem, activate | For business | Windows
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Kael Yao 37,751 Reputation points Moderator
    2024-01-09T02:11:08.0766667+00:00

    Hi @Brian Kinney,

    To my knowledge there is no built-in solutions for this.

    You may need to use Microsoft Graph scripts to achieve this goal.

    Besides, if the main purpose is to enable OOF for these users during holidays, to me another method is to add all users to a csv file, then periodically run a script in Exchange Online Powershell to bulk enable OOF with the Set-MailboxAutoReplyConfiguration cmdlet for these users.


    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.


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.