Use the following steps to delegate (Calender) rights to a specific user.
The first step is to specify your (administrator) credentials:
|
1 |
$LiveCred = Get-Credential |
Then create the session:
|
1 |
$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic –AllowRedirection |
Now import the Office 365 session using the following command:
|
1 |
Import-PSSession $Session |
Use the following command to delegate the calender from user1 to specified user2:
|
1 |
Add-MailboxFolderPermission -Identity user1@domain.com:\calendar -user user2@domain.com -AccessRights Editor |
Et voilà! The calender rights are set.