web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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.

  • Suggested answer
    fsilva-jr Profile Picture
    20 on at
  • Verified answer
    Community Member Profile Picture
    on at

    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...

  • Community Member Profile Picture
    on at

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

  • Community Member Profile Picture
    on at

    thx

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans