Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested answer

We disabled one of the admin account on crm 2016, getting user ID belongs to this is disabled error

(0) ShareShare
ReportReport
Posted on by 651

Hi All,

We have some customization developed on our CRM, to update the contact through other additional form using java scripts updates upon the form save. However no where in this java scripts, we can find the traces of one of the system account (system1) we recently disabled on our environment.

But when we disabled this system account(system1), during the contact update etc, We are facing below error. How to know, what is the reason for this. Is it possible to find this error information further.

systemid.jpg

example of JS been used is as below.

var entity = {};
entity.subject = "test";
entity["regardingobjectid_contact@odata.bind"] = "/contact(9CFBD4BD-CD4F-E811-A95A-000D3A1A9407)";
entity.responsecode = 3;

var req = new XMLHttpRequest();
req.open("POST", Xrm.Page.context.getClientUrl() + "/api/data/v8.2/contact", true);
req.setRequestHeader("OData-MaxVersion", "4.0");
req.setRequestHeader("OData-Version", "4.0");
req.setRequestHeader("Accept", "application/json");
req.setRequestHeader("Content-Type", "application/json; charset=utf-8");
req.onreadystatechange = function() {
    if (this.readyState === 4) {
        req.onreadystatechange = null;
        if (this.status === 204) {
            var uri = this.getResponseHeader("OData-EntityId");
            var regExp = /\(([^)]+)\)/;
            var matches = regExp.exec(uri);
            var newEntityId = matches[1];
        } else {
            Xrm.Utility.alertDialog(this.statusText);
        }
    }
};
req.send(JSON.stringify(entity));
  • Integration Profile Picture
    651 on at
    RE: We disabled one of the admin account on crm 2016, getting user ID belongs to this is disabled error

    Hi Bipin,

    Our related plugins are running calling user context. Do we still need to update anything in this plugins.

    640868.Capture.PNG

  • Suggested answer
    Bipin D365 Profile Picture
    28,981 Moderator on at
    RE: We disabled one of the admin account on crm 2016, getting user ID belongs to this is disabled error

    Hi,

    Have you updated plugin steps from plugin registration tool ?

  • Integration Profile Picture
    651 on at
    RE: We disabled one of the admin account on crm 2016, getting user ID belongs to this is disabled error

    Hi Rod Rodriguez,

    Thanks for the response.

    I have updated all the workflows and custom actions where the old system account is owner to the new one. Still i was getting the error.

    For java script files and other web resources related to the customization done, are not showing any place to find the owner. Do we still require this file to re-upload with new system account.

  • Suggested answer
    RodRodriguez Profile Picture
    on at
    RE: We disabled one of the admin account on crm 2016, getting user ID belongs to this is disabled error

    Howdy!

    Take a look at this article that goes over the issue you may be facing:

    https://d365demystified.com/2018/11/15/d365-quick-tip-why-should-you-reassign-records-to-another-user/

    Also, you might need to have that JavaScript deleted and replaced with a duplicate copy by a different (preferably a system user) account

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Daivat Vartak (v-9davar) Profile Picture

Daivat Vartak (v-9d... 225 Super User 2025 Season 1

#2
Muhammad Shahzad Shafique Profile Picture

Muhammad Shahzad Sh... 106

#3
Vahid Ghafarpour Profile Picture

Vahid Ghafarpour 82 Super User 2025 Season 1

Overall leaderboard

Product updates

Dynamics 365 release plans