No, those scripts will completely remove the user from Dynamics GP and SQL.......
I guess it depends on what you mean by 'inactive'?
--if 'inactive' meaning the users are idle and I just want to remove them from taking up a user license in Dynamics GP, then no, you don't want to use those........
--if 'inactive' meaning these users are no longer used nor needed ever again, then yeah, the scripts would work. I recommend these:
>>If you're not able to delete the GP user through the User Setup window within Dynamics GP, you can manually remove them from these tables:
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>'
The SY01400 is the User Master table and the SY60100 is the User Access table.
The SY10500 and SY10550 table are the user security tables.
>>If you need to remove the users from SQL Server, look under each of the GP system and company databases, under 'Users' to make sure any of these inactive users no longer exist there.
Also, under Security > Logins, you can verify whether the user/login exists or not as well.
The following script can also be run against the GP databases:
sp_dropuser '<User_Name>'
This script can be run against the Master system database to remove the login:
sp_droplogin '<Login_Name>'
The information above should completely remove the user from both Dynamics GP and SQL Server to the point where they could be re-added if at ever needed.
Let us know.......
Thanks