Get-ExoMailbox Error while querying REST service. HttpStatusCode=404

Mali Stane 91 Reputation points
2020-10-30T08:08:05.527+00:00

Hi,
If i run »today« command Get-exoMailbox I get error that mailbox is not…

Get-exoMailbox : Error while querying REST service. HttpStatusCode=404 ErrorMessage={"error":{"code":"NotFound","message":"Error executing request. ","details":[{"code":"Context","target":"","message":"Ex6F9304|Microsoft.Exchange.Configuration.Tasks.ManagementObjectNotFoundException|The operation couldn't be performed because object
'user@keyman .com' couldn't be found on 'DB6P195A001DC02.EURP195A001.PROD.OUTLOOK.COM'."}],"innererror":{"message":"Error executing request. ","type":"Microsoft.Exchange.Admin.OData.Core.ODataServiceException"}}}}

I have try :
Get-EXOMailbox
Get-EXOMailbox -Identity
Get-EXOMailbox -UserPrincipalName

I have also try : Get-EXOMailbox -Identity user@keyman .com -Archive.
With following error :
Get-EXOMailbox : Error while querying REST service. HttpStatusCode=500 ErrorMessage={"error":{"code":"InternalServerError","message":"Error executing request. The \"Archive\" parameter can't be used on the \"Get-Mailbox\" cmdlet because it isn't present in the role definition for the current user. Check the management roles assigned to you, and
try again.","details":[{"code":"18","target":"","message":"ExB880D8|Microsoft.Exchange.Configuration.Authorization.CmdletAccessDeniedException|The \"Archive\" parameter can't be used on the \"Get-Mailbox\" cmdlet because it isn't present in the role definition for the current user. Check the management roles assigned to you, and try
again."}],"innererror":{"message":"Error executing request. The \"Archive\" parameter can't be used on the \"Get-Mailbox\" cmdlet because it isn't present in the role definition for the current user. Check the management roles assigned to you, and try again.","type":"Microsoft.Exchange.Admin.OData.Core.ODataServiceException"}}}}

No issue if I try Get-Mailbox -Identity user@keyman .com -Archive.

If I use same command and use my upn, I get working response. If I use old command get-mailbox, result is returned for any user...
If I use Get-EXOMailboxFolderStatistics everything is working as expected.
It work ok “till now” today I’m faced with this issue.

Thankyou

Community Center Not monitored
{count} votes

1 answer

Sort by: Most helpful
  1. Mali Stane 91 Reputation points
    2020-10-30T08:16:40.437+00:00

    Update... If i activate Global Admin... Command is working. So it is Exchange Cloud issue

    2 people found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.