SOLVED

shared mailbox

%3CLINGO-SUB%20id%3D%22lingo-sub-225883%22%20slang%3D%22en-US%22%3Eshared%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-225883%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20experts%20we%20are%20using%20exchange%20hybrid%20environment.%26nbsp%3B%20i%20have%20given%20Full%20Access%20to%20Cloud%20user%20to%20Onprem%20shared%20mailbox.%26nbsp%3B%20When%20cloud%20user%20tries%20to%20open%20shared%20mailbox%20in%20outlook%20he%20is%20getting%20below%20error%3C%2FP%3E%3CP%3ECannot%20expand%20the%20folder.%20The%20set%20of%20folders%20cannot%20be%20opened.%20The%20file%3CBR%20%2F%3EC%3A%5CUsers%5Cuser1.mydomain.com%5CAppData%5CLocal%5CMicrosoft%5C%3CA%20href%3D%22mailto%3Aclouduser%40mydomain.com.ost%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eclouduser%40mydomain.com.ost%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3Eis%20in%20use%20and%20cannot%20be%20accessed.%3CBR%20%2F%3EClose%20any%20application%20that%20is%20using%20this%20file%2C%20and%20then%20try%20again.%3CBR%20%2F%3EYou%20might%20need%20to%20restart%20your%20computer%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ei%20have%20used%20these%20syntaxes%20nothing%20worked%20for%20me%3C%2FP%3E%3CP%3EAdd-MailboxPermission%20-Identity%20OnPremSharedMailbox%20-User%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22mailto%3Aclouduser%40mydomain.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Eclouduser%40mydomain.com%3C%2FA%3E%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E-AccessRights%20FullAccess%20-InheritanceType%20All%3CBR%20%2F%3E-------------------------------------------------%3C%2FP%3E%3CP%3EPS%5D%20C%3A%5CWindows%5Csystem32%26gt%3BSet-ADUser%20-Identity%20%22OnPremSharedMailbox%22%20-Add%20%40%7BmsExchDelegateListLink%3D%22CN%3DCloudUser%2COU%3DSM%2CDC%3Dmydomain%2CDC%3Dcom%22%3BmsExchDelegateListBL%20%3D%20%22%3CA%20href%3D%22mailto%3Acloud.user%40mydomain.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ecloud.user%40mydomain.com%3C%2FA%3E%22%7D%3CBR%20%2F%3ESet-ADUser%20%3A%20The%20attribute%20cannot%20be%20modified%20because%20it%20is%20owned%20by%20the%20system%3CBR%20%2F%3EAt%20line%3A1%20char%3A1%3CBR%20%2F%3E%2B%20Set-ADUser%20-Identity%20%22OnPremSharedMailbox%22%20-Add%20%40%7BmsExchDelegateListLink%20...%3CBR%20%2F%3E%2B%20~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20CategoryInfo%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%3A%20NotSpecified%3A%20(OnPremSharedMailbox%3AADUser)%20%5BSet-ADUser%5D%2C%20ADException%3CBR%20%2F%3E%26nbsp%3B%20%26nbsp%3B%20%2B%20FullyQualifiedErrorId%20%3A%20ActiveDirectoryServer%3A8369%2CMicrosoft.ActiveDirectory.Management.Commands.SetADUser%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Eexperts%20please%20help%20me%20i%20unable%20to%20resolve%20this%20issue%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-225883%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAdmin%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EExchange%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EOffice%20365%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-226185%22%20slang%3D%22en-US%22%3ERe%3A%20shared%20mailbox%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-226185%22%20slang%3D%22en-US%22%3E%3CP%3EHello!%3CBR%20%2F%3E%3CBR%20%2F%3EI%20have%20seen%20this%20issue%20before%2C%20and%20for%20me%20it%20was%20kind%20of%20a%20wonky%20fix%2C%20so%20I%20am%20hoping%20it%20is%20the%20same%20for%20you.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20Office%20365%2C%20they%20use%20what%20they%20call%20Automapping.%20At%20its%20core%20it%20is%20great%2C%20as%20it%20maps%20appropriate%20resources%20to%20your%20users%20without%20them%20having%20to%20manage%20them%20in%20outlook.%20However%2C%20if%20there%20is%20some%20sort%20of%20issue%20(or%20perhaps%20access%20across%20systems)%20the%20automapping%20can%20confuse%20the%20program%20to%20think%20the%20file%20is%20being%20access%20when%20its%20not.%3CBR%20%2F%3E%3CBR%20%2F%3ESo%20i%20would%20first%20try%20removing%20the%20automapping%20permissions%20if%20they%20are%20set.%20To%20do%20that%20remove%20any%20permission%20that%20are%20set%20already%2C%20and%20then%20add%20them%20back%20in%20with%20the%20flag%20-Automapping%20%24false%3CBR%20%2F%3E%3CBR%20%2F%3ESecondly%20I%20would%20check%20to%20see%20if%20you%20have%20the%20%22download%20shared%20folders%22%20options%20set%20in%20the%20users%20account%20settings%20(in%20outlook)%2C%20which%20could%20perhaps%20cause%20this%20behavior.%20Try%20removing%20that%20setting%2C%20and%20restarting%20outlook%20to%20see%20if%20it%20help.%3CBR%20%2F%3E%3CBR%20%2F%3ENot%20sure%20if%20either%20of%20these%20will%20help%2C%20but%20that%20is%20how%20I%20fixed%20my%20issue.%20Goodluck%2C%20and%20if%20not%20let%20me%20know%20and%20I%20can%20see%20what%20else%20i%20can%20find!%3CBR%20%2F%3Eadam%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hi experts we are using exchange hybrid environment.  i have given Full Access to Cloud user to Onprem shared mailbox.  When cloud user tries to open shared mailbox in outlook he is getting below error

Cannot expand the folder. The set of folders cannot be opened. The file
C:\Users\user1.mydomain.com\AppData\Local\Microsoft\clouduser@mydomain.com.ost is in use and cannot be accessed.
Close any application that is using this file, and then try again.
You might need to restart your computer 

i have used these syntaxes nothing worked for me

Add-MailboxPermission -Identity OnPremSharedMailbox -User clouduser@mydomain.com -AccessRights FullAccess -InheritanceType All
-------------------------------------------------

PS] C:\Windows\system32>Set-ADUser -Identity "OnPremSharedMailbox" -Add @{msExchDelegateListLink="CN=CloudUser,OU=SM,DC=mydomain,DC=com";msExchDelegateListBL = "cloud.user@mydomain.com"}
Set-ADUser : The attribute cannot be modified because it is owned by the system
At line:1 char:1
+ Set-ADUser -Identity "OnPremSharedMailbox" -Add @{msExchDelegateListLink ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo         : NotSpecified: (OnPremSharedMailbox:ADUser) [Set-ADUser], ADException
    + FullyQualifiedErrorId : ActiveDirectoryServer:8369,Microsoft.ActiveDirectory.Management.Commands.SetADUser 

experts please help me i unable to resolve this issue

1 Reply
Highlighted
Best Response confirmed by Rising Flight (Frequent Contributor)
Solution

Hello!

I have seen this issue before, and for me it was kind of a wonky fix, so I am hoping it is the same for you.

In Office 365, they use what they call Automapping. At its core it is great, as it maps appropriate resources to your users without them having to manage them in outlook. However, if there is some sort of issue (or perhaps access across systems) the automapping can confuse the program to think the file is being access when its not.

So i would first try removing the automapping permissions if they are set. To do that remove any permission that are set already, and then add them back in with the flag -Automapping $false

Secondly I would check to see if you have the "download shared folders" options set in the users account settings (in outlook), which could perhaps cause this behavior. Try removing that setting, and restarting outlook to see if it help.

Not sure if either of these will help, but that is how I fixed my issue. Goodluck, and if not let me know and I can see what else i can find!
adam