Add Calendar Permissions in Office 365 via Powershell using Add-MailboxFolderPermission
Add Calendar Permissions in Office 365 via Powershell using Add-MailboxFolderPermission
Step by Step Guide for setting calendar permissions in Office 365:
First step would be launch Powershell as Administrator.
Second would be to open a new PS Session on powershell to Exchange Online/Office 365 using below commands.
$GetCred = Get-Credential
$PSSession = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $GetCred -Authentication Basic -AllowRedirection
Import-PSSession $PSSession
Now the last step is to configure the permissions for the user2 permissions on user1 calendar using below Powershell:
Add-MailboxFolderPermission -Identity [email protected]:\calendar -user [email protected] -AccessRights Editor