• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Tachytelic.net

  • Sco Openserver
    • Sco Unix Support
    • SCO Openserver Installation ISOs
    • SCO Openserver Binaries
    • Add a Hard Drive to an Openserver 5 Virtual Machine
    • Install SCO Vision SQL-Retriever ODBC Driver on Windows 10
    • License Expired on Virtual SCO Openserver Installation
    • How to reset the root password on SCO Openserver 5
  • Scripting
    • PowerShell
      • Add leading zeros
      • Check if a File Exists
      • Grep with Powershell
      • Create Environment Variables
      • Test for open Ports
      • Append to a Text File
    • VBScript
      • Check if a File Exists
      • lpad and rpad functions
      • Windows Update E-Mail Notification
  • Office 365
    • Connect to Office 365 with PowerShell
    • Add or remove an email alias using Powershell
    • Change Primary email address of Active Directory user
    • How to hide an AD user from the Global Address List
    • How to hide mail contacts from the Global Address List
    • Change the primary email address for an account with PowerShell
    • Change Primary email address of an AD User
    • Grant a single user access to access to all calendars
    • Forward email to an external address using Powershell
    • Convert shared mailbox to user mailbox with Powershell
  • Get in Touch
  • About Me
    • Privacy Policy

Grant a single user access to access all users calendars in Office 365

June 5, 2014 by Paulie 3 Comments

If you need to Grant a single user access to access all users calendars in Office 365 this can be achieved by using the Add-MailboxFolderPermission cmdlet.

If you are adding permissions to a mailbox where no access rights exist already then this is straightforward, but if there is already some access rights in place then the command will fail, because there is an existing permissions entry in place.

You can check for the presence of existing folder permissions with the use of Get-MailboxFolderPermission cmdlet.

Finally if you find there is any existing permission in place you can remove it by using the Remove-MailboxFolderPermission cmdlet.

I have combined these three steps have been into the PowerShell script below which will check for an existing permission, remove it if it exists and then add the new access right. This is useful if you want to re-run the script on a regular basis so that it captures new users.

PowerShell script to Grant a single user access to access all users calendars in Office 365

  1. Type in the UPN(User Principal Name) of the user that you want to grant calendar permissions.
  2. Select the permissions level you would like them to have.
  3. Copy and paste the code to a Powershell window and the calendar permissions will be assigned.

The various levels of permissions are as follows:

  • None – Has no access to the folder.
  • Owner – Gives full control of the folder. An Owner can create, modify, delete, and read folder items; create subfolders; and change permissions on the folder.
  • Publishing Editor – Has all rights granted to an Owner, except the right to change permissions. A Publishing Editor can create, modify, delete, and read folder items and create sub folders.
  • Editor – Has all rights granted to a Publishing Editor, except the right to create subfolders. An Editor can create, modify, delete, and read folder items.
  • Publishing Author – Can create and read folder items and create subfolders but can modify and delete only folder items that he or she creates, not items created by other users.
  • Author – Has all rights granted to a Publishing Author but cannot create subfolders. An Author can create and read folder items and modify and delete items that he or she creates.
  • Nonediting Author – Can create and read folder items but cannot modify or delete any items, including those that he or she creates.
  • Reviewer – Can read folder items but nothing else.
  • Contributor – Can create only folder items and cannot read items.
  • Availability Only – View only availability data
  • Limited Details – View availability data with subject and location

This should generate output similar to the below:

Image showing how to Grant a single user access to access all users calendars in Office 365

 

 

Filed Under: Office 365, Scripts & Utilities Tagged With: Office 365, Powershell

Reader Interactions

Comments

  1. Jakub says

    November 20, 2014 at 9:21 am

    Works fine, many thanks

  2. jon says

    July 22, 2015 at 4:57 pm

    This was really useful to me and worked really well. thank you for making the effort to contribute to the net 🙂

  3. Emily B says

    July 21, 2020 at 9:15 pm

    This was exactly what I needed! Thanks so much for making it so easy, much appreciation to you!

Leave a Reply Cancel reply

Primary Sidebar

Link to my LinkedIn Profile

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 107 other subscribers.

Go to mobile version