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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Disabling multiple users at once

(0) ShareShare
ReportReport
Posted on by

Dear all,

Introduction
I am quite new to the world of managing Microsoft Dynamics AX, and hence a basic question.

As I did not find the answer to my question on this forum, I thought it might interest others as well.

Question

Is it possible to disable multiple users at once without using scripts?

Background information

I know users can be disabled by double clicking on a user, clicking Edit and unchecking the Enable box.

This is, however, a lot of work to do for about 400 users. (400 as I want to disable almost all users in the ACP environment, to be enabled only if necessary).
So: is there a faster way to do this? I have a feeling there should be, but have been unable to find it.

Thanks in advance for any tips or advice!

*This post is locked for comments

I have the same question (0)
  • Verified answer
    dekaasboer Profile Picture
    1,530 on at

    You could select the option "Edit in Grid" from the form. This way you still need to edit all the users but you'll manage in 10 minutes or less.

  • Iulian Cordobin Profile Picture
    8,201 on at

    I do not think it's possible without scripting (either a Job or a T-Sql script); that is without having to actually 'click' the number of times of the users you are going to disable.

  • Community Member Profile Picture
    on at

    Thank you, Rik, I knew there should be a quick solution to this

  • Verified answer
    Anton Venter Profile Picture
    20,346 Super User 2025 Season 2 on at

    Hi Rogier, here two jobs to disable and enable all users. If you are going to use it often, you could put this code in classes and add the menu items to the users form.

    static void AV_disableAllUsers(Args _args)
    {
        UserInfo    userInfo;
        
        update_recordSet userInfo
            setting enable = NoYes::No
                where userInfo.id != 'Admin';
        
        info("Done!");
    }

    static void AV_enableAllUsers(Args _args)
    {
        UserInfo    userInfo;
        
        update_recordSet userInfo
            setting enable = NoYes::Yes
                where userInfo.id != 'Admin';
        
        info("Done!");
    }

  • Community Member Profile Picture
    on at

    That is a great addition, Anton, although I hope this will not be necessary to use this script too often ;)

  • Hetkey Profile Picture
    7 on at

    Anton, forgive me for being a noob but..how do I run this in D365?

  • Suggested answer
    Umesh Pandit Profile Picture
    9,315 User Group Leader on at

    To dis enable :

    update userinfo set [enable] = 0 where ID <> 'Admin'

    To enable :

    update userinfo set [enable] = 1 where ID <> 'Admin'

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans