Title: Sharing users between 2 blogs
Last modified: August 19, 2016

---

# Sharing users between 2 blogs

 *  [dbunit16](https://wordpress.org/support/users/dbunit16/)
 * (@dbunit16)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/sharing-users-between-2-blogs/)
 * Is there a way to share users between two blogs on the same server? I have one
   in the root directory, and one plan to install one in another folder, let’s say/
   shop
 * This will contain products from Amazon.com and other affiliate programs. I’d 
   like to link the users so that users who are already registered can comment on
   products.
 * Any solutions for this?
 * Thanks,
 * Jon

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

 *  [tomatoma](https://wordpress.org/support/users/tomatoma/)
 * (@tomatoma)
 * [17 years, 9 months ago](https://wordpress.org/support/topic/sharing-users-between-2-blogs/#post-843651)
 * Theory:
 * 1) You install Blog B using the same database as blog A (changing the $table_prefix
   in config.php)
    [http://codex.wordpress.org/Installing_Multiple_Blogs#Single_Database](http://codex.wordpress.org/Installing_Multiple_Blogs#Single_Database)
 * 2) In blogB’s wp-config.php you have to ad two lines:
 * ‘define(‘CUSTOM_USER_TABLE’, ‘wp_users’);
    define(‘CUSTOM_USER_META_TABLE’, ‘
   wp_usermeta’);’
 * [http://codex.wordpress.org/Editing_wp-config.php#Custom_User_and_Usermeta_Tables](http://codex.wordpress.org/Editing_wp-config.php#Custom_User_and_Usermeta_Tables)
 * For me it’s not working, when I try to login on Blog B, I just get a blank page
   with a message “You have no authorisation to access this pages”
 * May be you are luckier than me
 *  [singhrt](https://wordpress.org/support/users/singhrt/)
 * (@singhrt)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/sharing-users-between-2-blogs/#post-843679)
 * I’m trying this as well but I’m getting the same “You have no authorisation to
   access this pages”.
 * Does anyone have a sollution for this?
 *  [singhrt](https://wordpress.org/support/users/singhrt/)
 * (@singhrt)
 * [17 years, 5 months ago](https://wordpress.org/support/topic/sharing-users-between-2-blogs/#post-843680)
 * IVE DONE IT!!
 * For me just put in
 * define(‘CUSTOM_USER_TABLE’, $table_prefix.’my_users’);
 * into the wp-config file. The error message stopped by not including the following:
 * define(‘CUSTOM_USER_META_TABLE’, $table_prefix.’my_usermeta’);
 * obviously changing my_ to your table name.
 *  [philpeter](https://wordpress.org/support/users/philpeter/)
 * (@philpeter)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/sharing-users-between-2-blogs/#post-843705)
 * This doesn’t work for me either, I get the following error:
 * > You do not have sufficient permissions to access this page.
 * singhrt’s solution didn’t work either (though I’m not surprised because that 
   surely just sets to the second user table rather than the ‘master’.
 * Any ideas anyone?
 *  [philpeter](https://wordpress.org/support/users/philpeter/)
 * (@philpeter)
 * [16 years, 11 months ago](https://wordpress.org/support/topic/sharing-users-between-2-blogs/#post-843708)
 * Has anybody else tried this yet? All the intructions seem easy enough, maybe 
   too easy… has something been missed do you think?

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

The topic ‘Sharing users between 2 blogs’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 4 participants
 * Last reply from: [philpeter](https://wordpress.org/support/users/philpeter/)
 * Last activity: [16 years, 11 months ago](https://wordpress.org/support/topic/sharing-users-between-2-blogs/#post-843708)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
