Forum Discussion
Unable to Set-MailboxFolderPermission
Unable to Set-MailboxFolderPermission example@test.fi -user Default -accessrights reviewer. Error message says that "There is no existing permission entry found for user".. We think this is because of Finnish language settings that automatically convert value "Default" to "Oletus" in powershell:
Error on proxy command 'Set-MailboxFolderPermission -User:'Oletus' -AccessRights:'Reviewer' -Identity:'example@test.fi' -Confirm:$False' to server AM6PR01MB4295.eurprd01.prod.exchangelabs.com: Server version 15.20.1856.00
00, Proxy method PSWS:
Cmdlet error with following error message:
Microsoft.Exchange.Management.StoreTasks.UserNotFoundInPermissionEntryException: There is no existing permission entry
found for user: Oletus.
at Microsoft.Exchange.Management.StoreTasks.SetMailboxFolderPermissionBase.ThrowUserNotFoundException()
at Microsoft.Exchange.Management.StoreTasks.SetMailboxFolderPermission.InternalProcessPermissions(Folder folder)
at Microsoft.Exchange.Management.StoreTasks.SetMailboxFolderPermissionBase.InternalProcessRecord()
at Microsoft.Exchange.Configuration.Tasks.Task.<ProcessRecord>b__93_1()
at Microsoft.Exchange.Configuration.Tasks.Task.InvokeRetryableFunc(String funcName, Action func, Boolean terminatePi
pelineIfFailed). [Server=DB6P190MB0311,RequestId=46a17ea7-9add-47bc-abee-499e5e64e66c,TimeStamp=7.5.2019 8.31.23] .
+ CategoryInfo : NotSpecified: (:) [Set-MailboxFolderPermission], CmdletProxyException
+ FullyQualifiedErrorId : Microsoft.Exchange.Configuration.CmdletProxyException,Microsoft.Exchange.Management.Stor
eTasks.SetMailboxFolderPermission
+ PSComputerName : outlook.office365.com
Any ideas?
Ok, Thanks. Issue resolved.
First "Set-Culture -CultureInfo en-us" and then open new powershell session.
$modules = @(Get-ChildItem -Path "$($env:LOCALAPPDATA)\Apps\2.0" -Filter "Microsoft.Exchange.Management.ExoPowershellModule.manifest" -Recurse )$moduleName = Join-Path $modules[0].Directory.FullName "Microsoft.Exchange.Management.ExoPowershellModule.dll"Import-Module -FullyQualifiedName $moduleName -Force$scriptName = Join-Path $modules[0].Directory.FullName "CreateExoPSSession.ps1". $scriptName$null = Connect-EXOPSSessionKey here is to open new powershell session else Set-Culture does not work.
You might simply have an folder with the default entry deleted, in which case use the Add-MailboxFolderPermission cmdlet instead. The language shouldn't matter, as long as you enclose the string in quotes.
- pv2hymelCopper ContributorThanks! That helped me!
- eeri1540Copper Contributor
VasilMichev Nope. Add-MailboxFolderPermission example@test.fi -user Default -accessrights reviewer, Cmdlet error with following error message: Microsoft.Exchange.Management.StoreTasks.InvalidExternalUserIdException: The user "Oletus" is either not valid SMTP address, or there is no matching information.
Once again "Default" is automatically converted to "Oletus" and not working. Same thing, remove-MailboxFolderPermission.
I also try to use quotes 'Default' and "default" but not helping.
Well, for some reason the culture cmdlets don't seem to work on my machine, but try using Set-Culture first before running the cmdlet. Or just use an English box :)