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 :
Customer experience | Sales, Customer Insights,...
Suggested Answer

The boolean "isdisabled" of the SystemUser Entity is null and I can't change it back

(0) ShareShare
ReportReport
Posted on by 5

Hello,

I have tried to change with Javascript console the value of the field "isdisabled" of the SystemUser Entity, but I got an error and it has set the value of the field to null.

When I try to change it back with Javascript, C# or anything else, I get an "Unexpected Error" (object reference not set to an instance of an object).

I have also tried to remove the user licence and put it back, but the value is still null.

I'm stuck with this...

Have you any idea ?

Thanks

I have the same question (0)
  • Fabio Branco Profile Picture
    Microsoft Employee on at

    Hi,

    The 'isdisabled' it is a witable attribute, based on System User Entity Reference documentation: docs.microsoft.com/.../systemuser

    Have you verified the value of the field from the Web API? You can do so form your browser by running the following query:

    yourorgname.api.crm4.dynamics.com/.../systemusers(systemuserid)

    Note: Please make sure you replace the OrgName and the SystemUserId in the query above

    By the default, the field value should be false. The message sugests that the field value is currently set to null

    You can attempt to modify the state of the User from the User Interface, following the steps in the 'Create users and assign security roles' documentation: docs.microsoft.com/.../create-users-assign-online-security-roles, or

    write the value of with the help of the Web API. You can make a HTTP patch request against the systemusers EntitySet to modify the field value.

    Example:

    var clientUrl = Xrm.Page.context.getClientUrl();

    var req = new XMLHttpRequest()

    req.open("PATCH", encodeURI(clientUrl + "/api/data/v9.1/systemusers(systemuserid)"), true); // [ please make sure you replace the SystemUserId with the GUID of your user in the query ]

    req.setRequestHeader("Accept", "application/json");

    req.setRequestHeader("Content-Type", "application/json; charset=utf-8");

    req.setRequestHeader("OData-MaxVersion", "4.0");

    req.setRequestHeader("OData-Version", "4.0");

    var body = JSON.stringify({

    isdisabled: false

    });

    req.send(body)

    You can make the request from your browser developer tools with the following steps:

    1. Singin with a system admnistrator user

    2. Open the browser developer tools (shortkey for most of the browsers: 'F12')

    3. Execute the request on the console of the browser

  • Suggested answer
    Erik Hagen Profile Picture
    Microsoft Employee on at

    Hello.

    Unfortunately, if this field somehow got set to NULL, you will likely need to open a support case to help get this corrected.  The fact that toggling the user license did not correct this would indicate to me that the back-end user sync process failed, essentially locking the user in this state of limbo.  Through a support case we will be able to get the specifics on the affected user, and take corrective action to unblock your situation.

    Thank you for using Microsoft Dynamics 365 Communities,

    Erik Hagen

    Support Escalation Engineer

    Microsoft Dynamics 365

  • Suggested answer
    Erik Hagen Profile Picture
    Microsoft Employee on at

    The other thing to keep in mind here is that, with CRM Online, the user sync process will automatically updated fields such as isdisabled.  For example, if you manually set a user to disabled, but something happens that triggers the user to sync, it may re-enable the user depending on the configuration.  For this reason, updating the isdisabled field without making other subsequent changes is not recommended, as the field change should be handled automatically.  If it is not handled automatically, this is something we would want to help you address.

    Thanks,

    Erik Hagen

    Support Escalation Engineer

    Microsoft Dynamics 365

  • Suggested answer
    arthsoco Profile Picture
    10 on at

    The issue has been fixed by the Microsoft Support.

    Thanks !

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 April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 107 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 94

#3
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 69 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans