FIX: Corrupt Outlook delegates by Bas Wijdenes

The delegates Settings were not saved correctly” the basics.

In my last post I already talk about this error message: “You do not have permission to schedule Skype meetings on behalf of the owner”. In addition to the steps in the previous post, it may also be that the permissions are no longer working because of corrupt Outlook permissions.

You can get the same error message, only you can recognize corrupt Outlook delegates when you delete users at “Outlook Delegates” or just add them. The list is not updated. You will then receive this error message: “The delegates Settings were not saved correctly”

Corrupt Outlook Permissions
Corrupt Outlook Permissions

To remove the Corrupt Outlook delegates I have created a separate manual.

You could also try this post from Microsoft although it’s a little old. I do this through PowerShell myself.


Lets fix “The Delegates were not saved correctly” with PowerShell.

Install the “Microsoft Exchange Web Services Managed API 2.2” click here.

  1. Login to outlook.office365.com/ecp
  2. Go to Permissions
  3. Select Organization Management
  4. And add the ApplicationImpersonation role.
  5. Now go to Start and search for PowerShell. Preferable PowerShell_ISE.
  6. Login to Exchange online with PowerShell. For more about this, click here.
$cred365 = get-credential

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

Import-PSSession $Session

Import-Module MSOnline

After you logged on, run the below command and don’t forget to change the admin account to your domain admin account.

$O365Cred = Get-Credential -credential admin@baswijdenes.com

Click Enter, A prompt appears to add the admin password.

Save Reset-Delegates.ps1 on the computer and run the next powershell command but with powershell pointed to the location where the ps1 is saved.

You can download the PowerShell script from here.

If you use the standard download folder this would be: C:\users\%username%\downloads
To open the folder path in PowerShell copy/paste and run this:

CD C:\Users\%username%\Downloads
  1. Run the next command:
.\Reset-Delegates.ps1 user@mail.com -PurgeInvalidFreeBusy -impersonate -EWSURL "https://outlook.office365.com/EWS/Exchange.asmx" -Username

$O365Cred.Username -Password $O365Cred.GetNetworkCredential().Password

Don’t forget to replace the username with your UserPrincipalName.


Recap

See anything that’s not correct, or do you have feedback for me? Please leave a comment.

If you you’re still getting the error: “You do not have permission to schedule Skype meetings on behalf of the owner“. Please review my previous blog post.

Published by

Bas Wijdenes

My name is Bas Wijdenes and I work full-time as a Services Engineer. In my spare time I write about the error messages that I encounter during my work. Furthermore, I am currently occupied with Office 365, Azure infrastructure, and PowerShell for automating daily tasks.

Leave a Reply

Your email address will not be published. Required fields are marked *