Quantcast
Channel: Powershell – TheITBros
Viewing all articles
Browse latest Browse all 91

Add Calendar Permissions in Office 365 via Powershell

$
0
0
windows-powershell

This is a tutorial on adding calendar permissions in Office 365 for your users via Powershell. You can add permissions onto a specific mailbox, or you can add it onto a security group.

Office 365 Calendar Permissions

Step 1

The first is step is to launch Windows Powershell. I recommend running it as administrator. Instructions on installing Windows Powershell.

powershell

Step 2

Run the following command to login to 365 via Powershell and login with your 365 admin credentials.

$LiveCred = Get-Credential

livecred

Step 3

Now you need to create a new session.

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

Step 4

Now we need to import the session.

Import-PSSession $Session

import-office-365-powershell-session-calendar-permissions

Step 5

These are the available roles:

  • Owner
  • PublishingEditor
  • Editor
  • PublishingAuthor
  • Author
  • NonEditingAuthor
  • Reviewer
  • Contributor
  • AvailabilityOnly
  • LimitedDetails

Now run the following command. In this example below, user2 would be able to open user1 calendar and edit it.

Add-MailboxFolderPermission -Identity user1@domain.com:\calendar -user user2@domain.com -AccessRights Editor

Alternative Script

Also see this 365 script for setting calendar permissions: Set Calendar Permission in Office 365 Exchange Online.

If the above information helped you, make sure to check out our official Office 365 Migration Guide.

The post Add Calendar Permissions in Office 365 via Powershell appeared first on TheITBros.


Viewing all articles
Browse latest Browse all 91

Trending Articles