Recently in one of our environments, we were getting the below error on trying to create/update a contact or account record.
Exception Message: The user with SystemUserId=xxx-8c8f-ee11-be36-0022489338d1 in OrganizationContext=xxx-8c8d-ee11-8174-0022489425ce is disabled. Disabled users cannot access the system. Consider enabling this user for the action to succeed.. User IsDisabled=True, IsLicensed=True.
![](https://nishantrana.me/wp-content/uploads/2024/04/null-12.png)
As the error message specifies, the system user record SystemUserId=xxxx-8c8f-ee11-be36-0022489338d1 was inactive/disabled.
So we can run the below query to check all the real-time workflows owned by that user
Next, we updated the Owner for all these workflows from Advanced Find.
![A screenshot of a computer
Description automatically generated](https://nishantrana.me/wp-content/uploads/2024/04/a20screenshot20of20a20computer0a0adescription20automatically20generated-38.png)
![A screenshot of a computer
Description automatically generated](https://nishantrana.me/wp-content/uploads/2024/04/a20screenshot20of20a20computer0a0adescription20automatically20generated-39.png)
This then allowed us to save the record.
Next we updated the owner of the remaining processes owned by the disabled user. We can also check and update the remaining components like plugin steps / cloud flows etc.
Click here for more details.
select workflowid, name, primaryentityname, categoryname, modenameg, owneridname, * from workflow
where
category = 0
and ownerid = 'abc-8c8f-ee11-be36-0022489338d1'
and mode = 1
Select * from sdkmessageprocessingstep
where impersonatinguserid = 'abc-8c8f-ee11-be36-0022489338d1'
Hope it helps..
Discover more from Nishant Rana's Weblog
Subscribe to get the latest posts to your email.
One thought on “Fixed – The system could not log you on. This could be because your user record has been disabled in Microsoft Dynamics 365 error when trying to create or save a record”