SOLVED
Home

Configuring Delegate access via PowerShell.

%3CLINGO-SUB%20id%3D%22lingo-sub-158496%22%20slang%3D%22en-US%22%3EConfiguring%20Delegate%20access%20via%20PowerShell.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-158496%22%20slang%3D%22en-US%22%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20258px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F28543i44521B0E1E6846EF%2Fimage-dimensions%2F258x241%3Fv%3D1.0%22%20width%3D%22258%22%20height%3D%22241%22%20alt%3D%22delegate%20access.png%22%20title%3D%22delegate%20access.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EIs%20the%20following%20window%20configurable%20at%20all%20via%20PowerShell%3F%20lots%20of%20Googling%20brings%20up%20various%20options%20and%20none%20seem%20to%20work.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E(this%20is%20in%20relation%20to%20the%20box%20below%20specifically)%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20408px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F28544iAEF275105BACED7F%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22delegate.PNG%22%20title%3D%22delegate.PNG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThings%20I've%20noted%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDelegates%20set%20here%20are%20%22ResourceDelegates%22%20for%20the%20Get-CalendarProcessing%20output%2C%20but%20you%20can't%20use%3C%2FP%3E%0A%3CP%3ESet-CalendarProcessing%20as%20it%20only%20works%20on%20resource%20mailboxes%20(Error%20%3A%20%22ResourceDelegates%20can%20only%20be%20enabled%20on%20resource%20mailboxes.%22)%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EUnder%20Get-MailboxFolderPermission%20user%3A%5Ccalendar%20you%20can%20also%20see%20the%20delegates%20setup%2C%20and%20with%20a%20SharingPermissionFlags%20of%20%22Delegate%2C%20CanViewPrivateItems%22%20(if%20set%20when%20adding%20them%20via%20the%20GUI%20above)%20but%20using%20Set-MailboxFolderPermission%20or%20Add-MailboxFolderPermission%20you%20can't%20seem%20to%20set%20those%20flags.%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnyone%20had%20any%20ideas%3F%20hooking%20into%20EWS%20perhaps%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-158496%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EExchange%20Server%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-188720%22%20slang%3D%22en-US%22%3ERe%3A%20Configuring%20Delegate%20access%20via%20PowerShell.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-188720%22%20slang%3D%22en-US%22%3E%3CP%3EI%20hope%20this%20is%20rolled%20out%20to%20on%20premises%20(2013%2F2016)%20via%20a%20CU%20soon%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-186820%22%20slang%3D%22en-US%22%3ERe%3A%20Configuring%20Delegate%20access%20via%20PowerShell.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-186820%22%20slang%3D%22en-US%22%3E%3CP%3EYes%2C%20it%20was%20an%20odd%20fix%20but%20Microsoft%20had%20me%20clear%20the%20user's%20local%20free%2Fbusy%20time%20using%20MFCmapi%20and%20that%20resolved%20the%20issue.%20It%20did%20take%20a%20while%20to%20replicate%20so%20after%20you%20remove%20the%20free%2Fbusy%20info%2C%20wait%20a%20day%20then%20try%20again.%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F958443%2Fyou-experience-issues-in-outlook-when-you-try-to-configure-free-busy-I%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.microsoft.com%2Fen-us%2Fhelp%2F958443%2Fyou-experience-issues-in-outlook-when-you-try-to-configure-free-busy-I%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-186815%22%20slang%3D%22en-US%22%3ERe%3A%20Configuring%20Delegate%20access%20via%20PowerShell.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-186815%22%20slang%3D%22en-US%22%3E%3CP%3EDid%20you%20find%20a%20solution%3F%20I%20get%20the%20same%20error%20when%20using%20the%20command%20-SharingPermissionsFlags%20Delegate.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-178118%22%20slang%3D%22en-US%22%3ERe%3A%20Configuring%20Delegate%20access%20via%20PowerShell.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-178118%22%20slang%3D%22en-US%22%3E%3CP%3EIf%20you%20can%20reliably%20reproduce%20the%20issue%2C%20capture%20the%20transcript%20and%20open%20a%20support%20case.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-177765%22%20slang%3D%22en-US%22%3ERe%3A%20Configuring%20Delegate%20access%20via%20PowerShell.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-177765%22%20slang%3D%22en-US%22%3E%3CP%3EHas%20anyone%20ever%20seen%20this%20error%20when%20trying%20to%20set%20delegate%20sharing%20permission%20flags%20in%20Powershell%3F%3C%2FP%3E%0A%3CP%3E%22Failed%20to%20update%20delegateCollection%22%3C%2FP%3E%0A%3CP%3EI%20have%20retried%20a%20few%20times%20on%20this%20user...no%20luck%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-162733%22%20slang%3D%22en-US%22%3ERe%3A%20Configuring%20Delegate%20access%20via%20PowerShell.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-162733%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20is%20already%20rolling%20out%20%3A)%3C%2Fimg%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CPRE%3E%EE%81%95%20%20Updated%20feature%3A%20Manage%20calendar%20delegate%20permissions%20in%20PowerShell%20%0A%0A%0AMC129312%0A%0AStay%20Informed%0A%0APublished%20On%20%3A%20February%2016%2C%202018%0A%20%20%0A%0AWe%E2%80%99re%20improving%20the%20MailboxFolderPermission%20cmdlet.%20This%20feature%20began%20rolling%20out%20this%20week.%20This%20message%20is%20associated%20with%20Office%20365%20Roadmap%20ID%3A%2026355.%20With%20this%20update%2C%20you%20can%20now%20manage%20calendar%20delegate%20permissions%20from%20the%20*-MailboxFolderPermission%20cmdlet.%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CDIV%20class%3D%22mc-cnt-top%22%3E%26nbsp%3B%3C%2FDIV%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechnet.microsoft.com%2Flibrary%2Fdd298062%2528v%3Dexchg.160%2529.aspx%3Ff%3D255%26amp%3BMSPPError%3D-2147217396%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Ftechnet.microsoft.com%2Flibrary%2Fdd298062%2528v%3Dexchg.160%2529.aspx%3Ff%3D255%26amp%3BMSPPError%3D-2147217396%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-162732%22%20slang%3D%22en-US%22%3ERe%3A%20Configuring%20Delegate%20access%20via%20PowerShell.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-162732%22%20slang%3D%22en-US%22%3E%3CP%3EAwesome%20thank%20you%2C%20can%20you%20let%20me%20know%20when%20it%20gets%20released%3F%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThanks%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EBen.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-158913%22%20slang%3D%22en-US%22%3ERe%3A%20Configuring%20Delegate%20access%20via%20PowerShell.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-158913%22%20slang%3D%22en-US%22%3E%3CP%3EIt%20will%20be%20doable%26nbsp%3Bvia%20PowerShell%20in%20few%20days%2C%20I%20cannot%20share%20more%20until%20the%20official%20documentation%20is%20posted.%20Until%20then%2C%20you%20can%20use%20EWS%20to%20manage%20them%2C%20there's%20a%20good%20module%20here%3A%20%3CA%20href%3D%22http%3A%2F%2Fwww.flobee.net%2Fpowershell-module-for-managing-exchange-2010-mailbox-delegates%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fwww.flobee.net%2Fpowershell-module-for-managing-exchange-2010-mailbox-delegates%2F%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EIf%20using%20EWS%20seems%20to%20complicated%2C%20just%20wait%20a%20bit%20%3A)%3C%2Fimg%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Ben Harris
Occasional Contributor

delegate access.png

Is the following window configurable at all via PowerShell? lots of Googling brings up various options and none seem to work.

 

(this is in relation to the box below specifically)

delegate.PNG

 

Things I've noted:

 

Delegates set here are "ResourceDelegates" for the Get-CalendarProcessing output, but you can't use

Set-CalendarProcessing as it only works on resource mailboxes (Error : "ResourceDelegates can only be enabled on resource mailboxes.")

 

Under Get-MailboxFolderPermission user:\calendar you can also see the delegates setup, and with a SharingPermissionFlags of "Delegate, CanViewPrivateItems" (if set when adding them via the GUI above) but using Set-MailboxFolderPermission or Add-MailboxFolderPermission you can't seem to set those flags. 

 

Anyone had any ideas? hooking into EWS perhaps?

 

 

8 Replies
Highlighted
Solution

It will be doable via PowerShell in few days, I cannot share more until the official documentation is posted. Until then, you can use EWS to manage them, there's a good module here: http://www.flobee.net/powershell-module-for-managing-exchange-2010-mailbox-delegates/

 

If using EWS seems to complicated, just wait a bit :)

Highlighted

Awesome thank you, can you let me know when it gets released?

 

Thanks

 

Ben.

Highlighted

It is already rolling out :)

 

 

  Updated feature: Manage calendar delegate permissions in PowerShell 


MC129312

Stay Informed

Published On : February 16, 2018
  

We’re improving the MailboxFolderPermission cmdlet. This feature began rolling out this week. This message is associated with Office 365 Roadmap ID: 26355. With this update, you can now manage calendar delegate permissions from the *-MailboxFolderPermission cmdlet.

 

 

 

https://technet.microsoft.com/library/dd298062%28v=exchg.160%29.aspx?f=255&MSPPError=-2147217396

Highlighted

Has anyone ever seen this error when trying to set delegate sharing permission flags in Powershell?

"Failed to update delegateCollection"

I have retried a few times on this user...no luck

Highlighted

If you can reliably reproduce the issue, capture the transcript and open a support case.

Highlighted

Did you find a solution? I get the same error when using the command -SharingPermissionsFlags Delegate.

Highlighted

Yes, it was an odd fix but Microsoft had me clear the user's local free/busy time using MFCmapi and that resolved the issue. It did take a while to replicate so after you remove the free/busy info, wait a day then try again.

https://support.microsoft.com/en-us/help/958443/you-experience-issues-in-outlook-when-you-try-to-con...

 

Highlighted

I hope this is rolled out to on premises (2013/2016) via a CU soon

Related Conversations
Access Switchboars
WilsonRebound in Access on
0 Replies
Access Switchboard
WilsonRebound in Access on
0 Replies
Quoting Program in Access
EclipseJohn in Access on
1 Replies
On Enter Event Procedure
Escuincla in Access on
2 Replies