Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Changing the ADMIN user

(0) ShareShare
ReportReport
Posted on by

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
    on at
    RE: Changing the ADMIN user

    thx

  • Community Member Profile Picture
    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
    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
    20 on at
  • Suggested answer
    Community Member Profile Picture
    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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics AX (Archived)

#1
Mohamed Amine Mahmoudi Profile Picture

Mohamed Amine Mahmoudi 100 Super User 2025 Season 1

#2
Community Member Profile Picture

Community Member 46

#3
shanawaz davood basha Profile Picture

shanawaz davood basha 6

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans