Advanced Access Manager
Deleted Super-Admin (3 posts)

  1. hsilva
    Posted 3 years ago #

    So I created a few users with "Administrator" roles and deleted my "admin" user (the one with super-admin role) on my WordPress site.

    Later I realized that only that specific user had access to some hidden stuff while editing pages, that the normal Administrator users dont have access to.

    Because "admin" (super admin) no longer exists, I cant access the AWM Group menus so I can't give another user the super-admin role.

    Using phpMyAdmin, I tried creating a new user named "admin" directly on the DB with ID=1 on the wp_users table (believing that would help) but when I logged in with this new "admin" user, I didnt even have access do wp-admin.

    I cant use a backup because some people have registered since this happened and made a lot of changes to the website!

    - How can I give the super-admin role to some other user using phpMyAdmin??
    - Does creating the user "admin" with id=1 even help? If so, what am I missing? What should I change in the DB besides the Id?

    Thank you very much!


  2. trevolutionary
    Posted 3 years ago #

    Did you resolve this? I got a similar problem now

  3. etruel
    Posted 2 years ago #

    this works for me ;)

    The solution I used is to replace directly in the database the capabilities of my Super-Admin user.
    In the table "wp_usermeta", I found the "wp_capabilities" row associated to my Super-Admin user and I replaced the value by :

    a:2 {s:13:"administrator";s:1:"1";s:11:"super_admin";s:1:"1";}

    Hope it helps.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Access Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic