Import calendar event through impersonation – O365

Sometimes, for several reasons, you’ll have to import calendar events into users mailbox in O365.

That could be done using different methods, directly using a service account (with a mailbox !), impersonated (as if the user created the event).

Here below is a quick example of a small script (powershell of course ! )

O365 connexion :

In my case, I have to fulfill all roommailboxes calendar using a csv extrat from an old tool. Those meetings have to be created by the user, and autoaccepted by rooms.


Then you’ll have to create your event, based on your import file:

And finally, just save it !

And, of course, close that pssession at the end !





Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site