How to Delete a Microsoft Dynamics GP User ID
Ever go into Dynamics GP to delete an active or inactive User ID and get the “Deleting the Login failed for an unknown reason. Contact your SQL Server administrator for assistance” error?
Not very descriptive. So you go back in figuring you forgot to:
- Release the User Access to a company
- Left the Enforce Password Policy checked
Just to find out that wasn’t it.
You go into SQL under sa, figuring “I’ll just delete the SQL User in Security, oops, the User ID isn’t listed.
Very frustrating. There are a number of scripts that can be used, however the most effective that I’ve found is below.
- Open a New Query
- Point to the DYNAMICS database
Create a new SQL Script, In this script the <User_name> is the Dynamics GP User ID.
DELETE DYNAMICS..SY01400 WHERE USERID = '<User_name>'
DELETE DYNAMICS..ACTIVITY WHERE USERID = '<User_name>'
DELETE DYNAMICS..SY60100 WHERE USERID = '<User_name>'
DELETE DYNAMICS..SY10500 WHERE USERID = '<User_name>'
DELETE DYNAMICS..SY10550 WHERE USERID = '<User_name>'
Just type the User ID between the ‘ ‘ marks and execute.
When you log back into Dynamics the User ID will be gone.
This article was written by Dean Anderson, Consultant at