Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Changing the ADMIN user

Posted on by Microsoft Employee

Imagine a scenario where an installation of AX2009 has been performed with a common domain user account (external consultant). As this user now 'owns' the installation the admin user group cannot be removed from this user account and for good reasons. For independence purposes you want another domain user to own that account, and remove administrative access from the original user that installed the topology.

How is that possible? Have been contemplating to copy the original users SID to the new user, but foresee issues if the original user gets deleted in the domain. Is that an correct assumption?

Or is there something else that defines the ownership ?

Looking forward to replies :-)

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Changing the ADMIN user

    thx

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Changing the ADMIN user

    Thanks. please mark the thread as verified/resolved for other's benefit.

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Changing the ADMIN user

    Hi All, many thanks for your replies. You are right about the service accounts, however, as there must always be at least one Admin user I solved it by doing the following:

    1. open a new job and enter this:

    static void pmaChangeAdmin(Args _args)

    {

       UserINfo    userInfo;

       ;

       ttsbegin;

       // step 1

     /*  select forupdate userinfo

           where userinfo.id == "Admin";

           userinfo.id = "SomeNewId";*/

      // step 2

      /*  select forupdate userinfo

           where userinfo.id == "ServiceAccountId";

           userinfo.id = "Admin";

           userinfo.update();*/

       ttscommit;

    }

    Run the job first with step 1, then with step 2 enabled.

    2. Add the SomeNewId user to the Admin user group or any other for that matter :-)

    3. Close AX and log in again. If the Service Account user is greeted as a new user, you have done it right.

    4. In order to log on again as admin or service account, hold SHIFT and rigthclick the AX shortcut and log on as different user. Enter the credentials.

    Solved :-) Thx for the tips...

  • Suggested answer
    fsilva-jr Profile Picture
    fsilva-jr 20 on at
  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Changing the ADMIN user

    Hi Patrick,

    In AX, the Admin account will have user as "Admin". this account cannot be removed. However, if you ever wanted to have new user as "Admin" account, then you can open the Users form, filter "Admin" id and change the network alias field to new id.

    So AX admin account will be mapped to new Windows account. you would need not change SID, AX will automatically take care of it.

    However, its always recommended to perform AX installation using Service account instead of user account. Service account never expires.

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,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans