Title: Super Admin User Level
Last modified: August 19, 2016

---

# Super Admin User Level

 *  Resolved [Tom Morton](https://wordpress.org/support/users/tm3909/)
 * (@tm3909)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/super-admin-user-level/)
 * I’m creating a quick plugin for myself that hides the “My Sites” panel when anyone
   but a super admin of a network is logged in. I’m essentially trying to keep the
   admins of their respective sites in their own environment and keep them away 
   from the main admin, regardless if they have privileges or not.
 * My code is here:
 * [http://pastebin.com/ziRccfzS](http://pastebin.com/ziRccfzS)
 * Only issue is, level_10 includes administrators. I’ve done some research, but
   it doesn’t seem that super admins have a specific user level. Is this true or
   do they and I just couldn’t find it?
 * And if they don’t, can I block all user’s except my account (the only super admin
   on the network)?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Tom Morton](https://wordpress.org/support/users/tm3909/)
 * (@tm3909)
 * [15 years, 7 months ago](https://wordpress.org/support/topic/super-admin-user-level/#post-1732296)
 * Well I created a workaround.
 * I figured, for now, my Superadmin Account will be the only one that is accessing
   the sites, and all other users can have that page hidden. So I did the following:
 *     ```
       function remove_the_dashboard () {
       global $current_user;
             get_currentuserinfo(); //Get Current Userinfo
             $user = $current_user->ID; //Find Users ID
       		if ($user == '1') { //if the users ID is Tom's id (1) give him everything
       			return;
       		} else { //everyone else, remove the "My Sites" panel
       			global $menu, $submenu, $user_ID;
       		unset($submenu['index.php'][5]); // Removes 'My Sites'.
       		}
   
       }
       add_action('admin_menu', 'remove_the_dashboard');
       ```
   
 * A few Steps:
 * 1. Check Userinfo
    2. Get the Current User ID 3. Match it to my ID (1, in this
   case). If it is 1, then give me the Admin menu. 4. If it is not 1, remove the“
   my Sites” panel.
 * A simple workaround, just won’t work if you have multiple superadmins. In that
   case, you would add their ID’s as well.
 * Resolved!

Viewing 1 replies (of 1 total)

The topic ‘Super Admin User Level’ is closed to new replies.

## Tags

 * [super-admin](https://wordpress.org/support/topic-tag/super-admin/)
 * [user-level](https://wordpress.org/support/topic-tag/user-level/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Tom Morton](https://wordpress.org/support/users/tm3909/)
 * Last activity: [15 years, 7 months ago](https://wordpress.org/support/topic/super-admin-user-level/#post-1732296)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
