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

Announcements

No record found.

News and Announcements icon
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,680 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 26

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans