0 votes

This issue affects only Adaxes versions that use the Exchange Online Management (EXO v3) PowerShell module:

  • Adaxes 2023.2 - all versions
  • Adaxes 2023 - starting from version 3.15.21404
  • Adaxes 2021.1 - starting from version 3.14.21404
  • Adaxes 2020.1 - starting from version 3.13.21404



If a Microsoft 365 tenant is registered in Adaxes via user account credentials and the computer where Adaxes service is installed uses a proxy server, certain operations in Exchange Online will always fail with the following error message.


Error message

    "error": {
        "code": "BadRequest",
        "message": "Cmdlet needs proxy. Current Server FQDN : server.prod.outlook.com, Required Server FQDN : server2.prod.outlook.com",
        "innererror": {
            "message": "Cmdlet needs proxy. Current Server FQDN : server.prod.outlook.com, Required Server FQDN : server2.prod.outlook.com",
            "type": "Microsoft.Exchange.Admin.OData.Core.ODataServiceException",
            "stacktrace": "at Microsoft.Exchange.AdminApi.CommandInvocation.CommandInvocation.InvokeCommand(QueryContext queryContext, CmdletInvokeInputType cmdletInvokeInputType)
                           at Microsoft.Exchange.Admin.OData.Core.PathSegmentToExpressionTranslator.Translate(OperationImportSegment segment)
                           at Microsoft.Exchange.Admin.OData.Core.QueryContext.ResolveQuery(ODataContext context, Int32 level)
                           at Microsoft.Exchange.Admin.OData.Core.Handlers.OperationHandler.Process(IODataRequestMessage requestMessage, IODataResponseMessage responseMessage)
                           at Microsoft.Exchange.Admin.OData.Core.Handlers.RequestHandler.Process(Stream requestStream)"



The EXO v3 PowerShell module has a known issue with user account authentication in such scenarios.



Switch the tenant registration to an application account. For more details, see how to Register Adaxes as an app in Microsoft Azure.

by (550 points)

Please log in or register to answer this question.

Related questions

0 votes
1 answer

Greetings. When I create the parameters to make a business rule that looks for users whose Email Proxy Adresses does not contain 'SMTP:%userPrincipalName%', it still generates profiles ... and primary SMTP address don't match. Version is 2023 How rule is set

asked Dec 19, 2022 by MShep (80 points)
0 votes
1 answer

For creating a computer object, we want to check if the entered CN is already used in our AD. And for that we want to use a powershell script. An other dot ... powershell script should be start before creating the computer object, right? Thanks for your help.

asked Jun 4 by KEME (50 points)
0 votes
1 answer

How can i différenciante the two user without opening each one of them ?

asked Jan 20, 2023 by eric.lebrun (20 points)
0 votes
0 answers

Whether I try to run a script or manually run the commands to enroll users, users remain unenrolled. Example of a basic script: Import-Module ... ` -QuestionsAndAnswers @{$question1=$answer1;$question2=$answer2} -AdaxesService localhost Adaxes version 2021

asked Mar 27, 2023 by gwadmin (80 points)
0 votes
1 answer

When creating a hybrid user mailbox with a Business Rule, after user creation, the remote routing address of the mailbox is set to the users email alias. How do I set it to the 365 address username@ourdomain.mail.onmicrosoft.com

asked Apr 13, 2022 by john.harding (70 points)
3,426 questions
3,122 answers
546,223 users