Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Failed to logon in Microsoft dynamics ax with Windows User other than identity User on IIS

Posted on by 95

Hello Community ,

                                We have deploy ax custom service  with Identity 'ErpUser'  on IIS where authentication mode is 'Windows' . We have two user ErpUser and ErpTest user available on AX 2012 which have been configured on Inbound port to access the Service.

                                   When we are consuming the service in .Net Application as Credential of ErpUser , The Service is working fine but accessing the Service using ErpTest , the error is 'ax is unable to logon ' . 

                                   If I am changing the Identity on IIS to ErpTest User , the Service is running fine with ErpTest  but ErpUser is not able to acess the Service.

                        Is it possible to configure the Service in such a way that both user can access the service with thier credentials.

Thanks

                               

       

  • Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: Failed to logon in Microsoft dynamics ax with Windows User other than identity User on IIS

    Abdul,

    I haven't tried this solution. For most of the integration needs, we have always setup an account as an integration account and that's how we identified the records/transactions which were sent through using the integration service.

  • rizwan Profile Picture
    rizwan 95 on at
    RE: Failed to logon in Microsoft dynamics ax with Windows User other than identity User on IIS

    Hello Bhattacharya ,

    I did the configuration as per the below link cloudblogs.microsoft.com/.../

    But unable to get my result

    I think we cannot consume the service with any AX account except the Ax Account which we used in IIS Identity  And AX allows only the account which we configured in IIS

    Correct me if I am wrong

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: Failed to logon in Microsoft dynamics ax with Windows User other than identity User on IIS

    When you refer to the default website, I assume that you are referring to the AIF website configured by AX installer. If this is the case, you will need to configure the external application using the account you used for configuring web services on IIS (That's how we always configured for Scribe previously).

    Per my knowledge, here are the answers to your question -

    1. AX can be accessed using other users, however, you will need to generate the service metadata in the .NET application using the user configured in IIS .

    2. You can provide user credentials in .NET application. Please follow the blog - cloudblogs.microsoft.com/.../. Hopefully this is something similar that you are trying to do.

    3. I would recommend not using AXADMIN for IIS. You can use the other System admin user ("Y" as per your scenario).

  • rizwan Profile Picture
    rizwan 95 on at
    RE: Failed to logon in Microsoft dynamics ax with Windows User other than identity User on IIS

    In my Scenario there are three player involved  : .Net Application , IIS Service , Microsoft Dynamics Ax 

    1- There are two users  (X & Y ) in AX which are having same roles as System Administrator & System User  and One User AXAdmin which is default user for MSDAX Service in Windows Services. Windows Authentication is enabled on IIS 

    2-  In IIS the default website where the AX Services are available has been configured with IDENTITY of User 'X' and if Iam trying to consume the .Net Application (Client) with User 'X' Credentials and it is working fine . But When trying to consume with 'Y' User , it is showing 'Unable to logon ' Message . So I changed the Identity User on IIS to be with 'Y' User and trying to consume with 'Y' credentials it is working fine but with 'X' credentials it is showing the same error message 

    So my question  with community is that the

    1-AX can be accessed by   the Identity User Configured on IIS  only 

    2- can we provide user credential in .Net Application to Access the Microsoft AX

    3- Shall we configure the IIS Service with AXADMIN Credentials in that case it may work or not 

    Kindly comment on 

     

                  

  • Suggested answer
    Junaid Idrees Profile Picture
    Junaid Idrees 12,746 on at
    RE: Failed to logon in Microsoft dynamics ax with Windows User other than identity User on IIS

    Hi Muhammad,

    I found one related thread on the same issue:

    community.dynamics.com/.../failed-to-log-on-to-microsoft-dynamics

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    Gunjan Bhattachayya 35,421 on at
    RE: Failed to logon in Microsoft dynamics ax with Windows User other than identity User on IIS

    Hi Abdul,

    You can try setting Anonymous authentication on IIS and try again?

  • MuthukumaranAX Profile Picture
    MuthukumaranAX 2,907 on at
    RE: Failed to logon in Microsoft dynamics ax with Windows User other than identity User on IIS

    Hi - Did you add the user in "Trusted intermediary users" list?

    Thanks

  • rizwan Profile Picture
    rizwan 95 on at
    RE: Failed to logon in Microsoft dynamics ax with Windows User other than identity User on IIS

    Both Users are  having the role of system user and system administrator  .

    Shall we need to configure the Custom Service with Identity of AXAdmin . As AXAdmin is the  User  who is the default logon User for AX Dynamics Server Service .

    Kindly comment on it

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Failed to logon in Microsoft dynamics ax with Windows User other than identity User on IIS

    Hi,

    Are ErpUser and ErpTest user setup identically in AX?

    Same role, rights, assignments, etc.?

    Best regards,

    Ludwig

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans