Getting an error "Access denied. Script returned status 3 using account user null".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 05:38 AM
Hello,
I have a requirement related to 'Account Setup: User was a Conversion and ended with two active entries in SN User Table'. The requirement is "User is a conversion, and the existing AD account DID get updated, but the ServiceNow User did not get updated, and the AD sync added a NEW user record, so we have dup with same email address". but when I try to replicate the issue, I am getting this error 'Access denied. Script returned status 3 using account user null.'
If anyone has an idea related to the ‘Access denied. Script returned status 3 using account user null.’ error please let me know.
Thank You!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-27-2023 08:27 AM
Have you resolve this? I am getting the same thing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2024 04:51 PM
Were you able to resolve this?
I am getting the error: Access denied. Script returned status 3 using account local MID server service credential.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-25-2024 12:26 PM
The ServiceNow checks are not fully thought through I think. There is a script which checks the credentials before running any powershell script:
"Credentials.psm1" (check agent script files) - here you can see for instance that for SCCM the "no credentials or use mid server service account"-case always fails with error 3...
The default seems to be "testCredentialsWMI": https://docs.servicenow.com/csh?topicname=mid-server-powershell-files.html&version=latest

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-17-2024 11:22 AM
I had noticed that before, and sometimes I see that it uses one over the other and am not sure how or why. When I do it from one of my environments, it uses the one that doesn't require credentials.
Do you know how to force it to do that one? I don't really know how to proceed after your comments. Could you elaborate?