Sunday, February 09, 2020

Index problems with shared mailbox in outlook


Shared mailbox was not indexed properly in outlook (items did not appear on search).  The solution is to remove automapping from the user.  create a new profile and add the shared mailbox as an additional account (not from the add shared mailbox dialog).

I.  Remove user permissions on the shared mailbox, and readd them removing automapping.
1. Please create a new outlook profile in control panel.​

2. Repair the office 365 set up. ​
3. Remove the shared mailbox from end user outlook email client and re-add it.

Close Outlook.
​Go to Start > Control Panel > Click on Mail.
The Mail Setup window will pop up.
​Click on Email Accounts.
Select your profile and click on Change.
Select More Settings.
On the Advanced tab, select the Shared Mailbox and click Remove.
Open Outlook again and reconnect the shared mailbox following the same process. 


4. Correcting folder permissions on shared mailbox by following the below mentioned commands.​
Open the Powershell as an administrator and run the below mentioned commands one at a time.​

Set-ExecutionPolicy RemoteSigned ​​
 ​
 (After running the command please type in yes)​​
​​
 $UserCredential = Get-Credential ​
 (Enter your complete global admin credentials, when prompted)​​
​​
  $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://outlook.office365.com/powershell-liveid/ -Credential $UserCredential -Authentication Basic -AllowRedirection​
 Import-PSSession $Session ​
​Start-Transcript​
Remove-MailboxPermission -Identity sharedmailbox@domain.com -User usermailbox@domain.com -AccessRights FullAccess​ -AutoMapping:$false
Type Yes and press enter when prompted.​
Now re-add the end user to shared mailbox by using the below command:​
Add-MailboxPermission -Identity sharedmailbox@domain.com -User usermailbox@domain.com -AccessRights FullAccess​ 
Stop-Transcript​

go to new profile.  Open mailbox settings and add new account as in this blog 

File=>AccountSettings => New
Enter the shared mailbox.  It will ask you for a password, click sign in with another account.
Sign in with client primary mailbox account and the shared mailbox should be added to the profile.

It will take awhile for the indexing to complete.


​Didn't do this.  
Note: After running the Start-Transcript command it will save a notepad file on a specific location of your system. Please share the same file with us.
5. Now login to your the office 365 portal and go to the Exchange Admin Center.​
Navigate for the recipient menu.​
Click on shared and double click on the impacted shared mailbox profile.​
On the left hand side navigation pane search for mailbox features.​
Under the mailbox feature search for MAPI.​
If it is enabled then please disabled the same and wait for around 30 minutes.​
Upon completion of 30 mins please re-enable the MAPI​
6. Download the Sara tool on the impacted end user's and run the same to further troubleshoot the issue.