Tag Archives: OfficeOnline

Assign Calendar Perms – Powershell

16 Mar

PS C:\Windows\system32> $Cred = Get-Credential

cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
PS C:\Windows\system32> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication Basic -AllowRedirection
WARNING: Your connection has been redirected to the following URI:
https://ps.outlook.com/PowerShell-LiveID?PSVersion=5.1.17134.858
PS C:\Windows\system32> Import-PSSession $Session -DisableNameChecking

PS C:\Windows\system32> add-mailboxfolderpermission -identity userwhoyouwanttoview@twhf.org.uk:\calendar -user userwhoyouwantohaveaccessto -accessrights editor

FolderName User AccessRights SharingPermissionFlags
———- —- ———— ———————-
Calendar User {Editor}