Adding User to Shared Calendar through Powershell
For use in ‘Adding User to HR Calendar’ workflow
https://community.spiceworks.com/topic/2160118-office-365-admin-give-calendar-access-to-a-user
Powershell Commands:
$LiveCred = Get-Credential
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $LiveCred -Authentication Basic --AllowRedirection
Import-PSSession $Session
Get-MailboxFolderPermission HR:\calendar
Add-MailboxFolderPermission –Identity HR:\calendar -user brent.brown@ticketboat.com -AccessRights LimitedDetails –SendNotificationToUser $true
Get List of all Calendars & their permissions
Get-Mailbox | ForEach-Object {Get-MailboxFolderPermission $_”:\calendar”} | Where {$_.User -like “Default”} | Select Identity, User, AccessRights