May 07 2019
01:40 AM
- last edited on
Feb 01 2023
12:05 PM
by
TechCommunityAP
May 07 2019
01:40 AM
- last edited on
Feb 01 2023
12:05 PM
by
TechCommunityAP
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?
May 07 2019 10:31 AM
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.
May 09 2019 04:55 AM - edited May 09 2019 05:00 AM
@Vasil Michev 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.
May 09 2019 10:09 AM
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 :)
May 10 2019 01:07 AM - edited May 10 2019 01:10 AM
SolutionOk, Thanks. Issue resolved.
First "Set-Culture -CultureInfo en-us" and then open new powershell session.