Forum Discussion
OzOscroft
May 02, 2023Iron Contributor
Set historic calendar entries for a specific user to private
Hi all. To improve engagement and to make organising meetings easier, I'd like to automatically set everyone's calendar so that everyone else in the organisation can see the title & location of appo...
Andres-Bohren
May 03, 2023Steel Contributor
Hi OzOscroft
You should be able to use EWS Managed API and OAuth Authentication. Be aware that this is like an Application Impersonation
https://blog.icewolf.ch/archive/2021/02/06/exchange-managed-api-and-oauth-authentication/
or with Calendars.Read Calendars.ReadWrite Permissions you should also be able to Microsoft.Graph PowerShell Modules with Get-MgUserEvent / Update-MgUserEvent cmdlets.
Some samples are here https://github.com/BohrenAn/GitHub_PowerShellScripts/blob/main/ExchangeOnline/GraphAPI/ExOMgGraphApi.ps1
But be aware:
- If you update Meetings --> This could result in an Update Mail to all Recipients
- Handling of Series is always a bit tricky
Regards
Andres Bohren