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