Our support team generally recommends that users be adjusted through the CMS or API, but at times there may be a need to adjust a user within the database directly. Further if a user needs to be fully removed from the database and not just flagged as deleted in the appropriate tables direct database manipulation would be needed.
As always before making any direct database manipulation our support team recommends backing up the site's database before directly manipulating the database in the event that a restore is needed.
- Within SQL management studio expand the server the database is hosted on.
- Expand the desired database.
- Expand programmability.
- Expand stored procedures.
- Right click on the stored procedure folder.
- Select filter > filter settings.
- Within the name field enter cms_deleteuser.
- Click ok.
- Right click on the cms_deleteuser stored procedure.
- Click execute stored procedure.
- Within the @userid field enter the user id for the account that should be deleted.
- If the user needs to be completely removed from within the database enter a 1 into the @forcedelete field. To see more details on what the stored proc does, right click on cms_deleteuser and click modify.
- Click ok.
Result: A query is generated and run against the database. If the force delete field was set to 1 additional scripts are run against the database to do a more thorough removal.
In the screen capture bellow is an example of a filtered view with the stored procedure highlighted.