Back to all posts

Promoting DNN User to Super user

Posted on Feb 24, 2007

Posted in category:
Development
DNN

As someone pointed out on the DotNetNuke message boards, my previous example of creating a new host account via SQL is a bit over-involved in certain special cases. If you have a user account that you would simply like to promote to a host account it is a very simple single SQL Script. This process can be very helpful if you are looking to take for example your personal account and promote it to a host to fix errors. However, you want to be sure that you are careful which account you promote as anyone that would log in with this account after the change will have host permissions!

The Script

To update the user account simply run the below script, be sure to put your username in for the username.

Promotion Script
UPDATE users
SET IsSuperUser = 1
WHERE username = 'TestUser'