Home

Setting calendar access in PowerShell without explicit sharing

%3CLINGO-SUB%20id%3D%22lingo-sub-369205%22%20slang%3D%22en-US%22%3ESetting%20calendar%20access%20in%20PowerShell%20without%20explicit%20sharing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-369205%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20Office%20365%20I%20can%20set%20calendar%20view%20access%20levels%20for%20all%20users%20in%20my%20organization%20from%20the%20Outlook%20web%20UI.%26nbsp%3B%20This%20assumes%20that%20I%20am%20logged%20on%20to%20that%20specific%20user%20mailbox%20and%20does%20not%20appear%20to%20be%20available%20from%20the%20O365%20or%20Exchange%20Admin%20Centres.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20option%20is%20available%20from%20here%3A%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOffice365%20Online%20Portal%3C%2FP%3E%3CP%3EOutlook%3C%2FP%3E%3CP%3EOutlook%20Settings%20(cog%20in%20top%20right%20corner)%3C%2FP%3E%3CP%3EView%20All%20Outlook%20Settings%3C%2FP%3E%3CP%3ECalendar%3C%2FP%3E%3CP%3EShared%20Calendars%3C%2FP%3E%3CP%3ESelect%20My%20Calendar%20from%20the%20drop%20down%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EOnce%20selected%2C%20a%20sharing%20and%20permissions%20window%20is%20displayed.%26nbsp%3B%20This%20shows%20a%20selection%20for%20'People%20In%20My%20Organization'%20which%20is%20there%20presumably%20by%20default.%3C%2FP%3E%3CP%3EI%20can%20then%20select%20an%20access%20level%20for%20all%20users%20in%20my%20organization%20without%20having%20to%20explicitly%20add%20individual%20users%20or%20send%20sharing%20invites%20to%20users%3C%2FP%3E%3CP%3EUsers%20in%20my%20organization%20can%20then%20simply%20add%20my%20calender%20to%20their%20list%20of%20displayed%20calendars%20to%20view%20my%20entries%20at%20the%20level%20of%20access%20I%20have%20specified%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20guessing%20this%20is%20NOT%20done%20using%20set-mailboxfolderpermission%26nbsp%3B%20as%20I%20have%20added%20this%20to%20my%20own%20mailbox%20via%20the%20O365%20portal%20UI%20and%20it%20is%20working%20however%20get-mailboxfolderpermission%20does%20not%20list%20this%20within%20the%20returned%20results%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMy%20questions%20are%3A%3C%2FP%3E%3CP%3ECan%20the%20above%20UI%20access%20levels%20be%20set%20via%20PowerShell%20%3F%3C%2FP%3E%3CP%3EIf%20so%2C%20what%20are%20the%20commands%20to%20do%20this%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIf%20I%20can%20determine%20the%20above%20I%20can%20then%20push%20this%20into%20a%20for%20loop%20to%20push%20out%20to%20all%20user%20mailboxes%20across%20our%20organization%20by%20default%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESee%20below%20for%20the%20dialog%20window%20I%20am%20referring%20to%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20646px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F89122iD96DACF29C364E80%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%222019-03-14_1117.png%22%20title%3D%222019-03-14_1117.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-369205%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Online%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOutlook%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-383419%22%20slang%3D%22en-US%22%3ERe%3A%20Setting%20calendar%20access%20in%20PowerShell%20without%20explicit%20sharing%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-383419%22%20slang%3D%22en-US%22%3E%3CP%3EThe%20interorg-level%20permissions%20are%20set%20through%20the%20'Default'%20user%20context%3B%20Set-MailboxFolderPermission%20-Identity%20%3CUSER%3E%3A%5CCalendar%20-User%20Default%20-AccessRights%20Reviewer%20(%3DFullDetails%2C%20the%20default%20is%20AvailabilityOnly).%3C%2FUSER%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
WoodyFromOz
Frequent Visitor

In Office 365 I can set calendar view access levels for all users in my organization from the Outlook web UI.  This assumes that I am logged on to that specific user mailbox and does not appear to be available from the O365 or Exchange Admin Centres.

 

The option is available from here:

 

Office365 Online Portal

Outlook

Outlook Settings (cog in top right corner)

View All Outlook Settings

Calendar

Shared Calendars

Select My Calendar from the drop down

 

Once selected, a sharing and permissions window is displayed.  This shows a selection for 'People In My Organization' which is there presumably by default.

I can then select an access level for all users in my organization without having to explicitly add individual users or send sharing invites to users

Users in my organization can then simply add my calender to their list of displayed calendars to view my entries at the level of access I have specified

 

I am guessing this is NOT done using set-mailboxfolderpermission  as I have added this to my own mailbox via the O365 portal UI and it is working however get-mailboxfolderpermission does not list this within the returned results 

 

My questions are:

Can the above UI access levels be set via PowerShell ?

If so, what are the commands to do this?

 

If I can determine the above I can then push this into a for loop to push out to all user mailboxes across our organization by default

 

See below for the dialog window I am referring to

2019-03-14_1117.png

 

 

1 Reply

The interorg-level permissions are set through the 'Default' user context; Set-MailboxFolderPermission -Identity <User>:\Calendar -User Default -AccessRights Reviewer (=FullDetails, the default is AvailabilityOnly).