Title: global users
Last modified: August 18, 2016

---

# global users

 *  [clovertech](https://wordpress.org/support/users/clovertech/)
 * (@clovertech)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/global-users/)
 * Is it possible to have a global set of users for multiple blogs. For instance
   i would install multiple blogs in one database with different table prefixes.
   but would it be possible to have all of these blogs refer to a single set of 
   users. basically have them all refer to a single user table. This would allow
   a global set of users that can access all of the blogs inside the one database.
   Any suggestions????

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/global-users/#post-357194)
 * The following should work as long as all blogs reside in the same database.
 * First, choose the “primary” blog that will maintain the user-related tables. 
   This is specifically for the table prefix info, which we’ll assume is “wp_”. 
   From there, edit the wp-settings.php file for each secondary blog, changing the
   following two lines in the _Table names_ section:
 * `$wpdb->users = $table_prefix . 'users';
    $wpdb->usermeta = $table_prefix . '
   usermeta';
 * to
 * `$wpdb->users = 'wp_users';
    $wpdb->usermeta = 'wp_usermeta';
 * Again, we’re assuming “wp_” for the primary blog’s table prefix. That should 
   be all you need to do. Source hacking note: Back up the files you are editing,
   and comment your changes for future reference (especially for upgrades to WordPress).
 *  [Kafkaesqui](https://wordpress.org/support/users/kafkaesqui/)
 * (@kafkaesqui)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/global-users/#post-357196)
 * Turns out there may be a more maintainable method for this. I just looked over
   wp-settings.php under WordPress 2.0.2, and found these PHP constants are checked
   for:
 * `CUSTOM_USER_TABLE`
    `CUSTOM_USER_META_TABLE`
 * So instead of the above changes to wp-settings.php, try adding the following 
   to each secondary blog’s wp-config.php (before the include of wp-settings.php):
 * `define ('CUSTOM_USER_TABLE', 'wp_users');
    define ('CUSTOM_USER_META_TABLE','
   wp_usermeta');
 *  Thread Starter [clovertech](https://wordpress.org/support/users/clovertech/)
 * (@clovertech)
 * [20 years, 2 months ago](https://wordpress.org/support/topic/global-users/#post-357215)
 * i have tried both of these edits but with no luck. after doing these edits i 
   was unable to access to blog’s main page, and also unable to login using both
   the password given to me on the new install and the the one from the orginal 
   install. It tells me I do not have permission to access this page (wp-login).
   HELP???

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘global users’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [clovertech](https://wordpress.org/support/users/clovertech/)
 * Last activity: [20 years, 2 months ago](https://wordpress.org/support/topic/global-users/#post-357215)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
